cogl-vertex-attribute: Optionally avoid applying the legacy state
authorNeil Roberts <neil@linux.intel.com>
Mon, 10 Jan 2011 20:13:41 +0000 (20:13 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 11 Jan 2011 14:06:09 +0000 (14:06 +0000)
commit38e527a3cf2527a46461eb76c6598071daf95053
treeeb251672781a43ad5d8deaa1e60024451d53c280
parentcb49197d0101aa32fa3bb0f8948c1952f5ccae33
cogl-vertex-attribute: Optionally avoid applying the legacy state

When an item is added to the journal the current pipeline immediately
gets the legacy state applied to it and the modified pipeline is
logged instead of the original. However the actual drawing from the
journal is done using the vertex attribute API which was also applying
the legacy state. This meant that the legacy state used would be a
combination of the state set when the journal entry was added as well
as the state set when the journal is flushed. To fix this there is now
an extra CoglDrawFlag to avoid applying the legacy state when setting
up the GL state for the vertex attributes. The journal uses this flag
when flushing.
clutter/cogl/cogl/cogl-journal.c
clutter/cogl/cogl/cogl-vertex-attribute-private.h
clutter/cogl/cogl/cogl-vertex-attribute.c