GNOME Bugzilla – Bug 670793
Don't use cogl_get_draw_framebuffer when flushing pipeline state
Last modified: 2012-03-05 19:52:45 UTC
See patch
Created attachment 208406 [details] [review] Don't use cogl_get_draw_framebuffer when flushing pipeline state Some of the state when flushing a pipeline depends on the current framebuffer being used. These are: • The matrix stack, so that it can flip vertically or not depending on whether the framebuffer is offscreen. • The colormask. This is combined with the framebuffer's color mask. • The cull face mode. If the framebuffer is offscreen then backface culling is translated to frontface culling and vice-versa. These states were not working if the new framebuffer draw_primitive API was used because in that case the framebuffer is not pushed to the framebuffer stack so it would use the wrong one. This patch changes it to use ctx->current_draw_buffer which is a pointer to the framebuffer whose state was last flushed.
Pushed as 75226501cfc