mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 23:03:00 +00:00
Havoc Pennington
cb344560dc
add cogl_push_draw_buffer() and cogl_pop_draw_buffer()
These are necessary if nesting redirections to an fbo, otherwise there's no way to know how to restore previous state. glPushAttrib(GL_COLOR_BUFFER_BIT) would save draw buffer state, but also saves a lot of other stuff, and cogl_draw_buffer() relies on knowing about all draw buffer state changes. So we have to implement a draw buffer stack ourselves. Signed-off-by: Robert Bragg <robert@linux.intel.com>
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%