mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
2f4d66f950
When a primitive is drawn with an attribute that contains texture coordinates Cogl will fetch the corresponding layer in order to determine the unit number. However if the pipeline didn't actually have a layer it would end up redundantly creating it. It's probably not a good idea to be modifying the pipeline while flushing the attributes state so this patch makes it pass the no-create flag to the get_layer function and then skips out enabling the attribute if the layer didn't already exist. https://bugzilla.gnome.org/show_bug.cgi?id=702570 Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 7507ad1a55a2aeb5beb8c0e3343e1e1f2805ddde) |
||
---|---|---|
.. | ||
gl | ||
nop |