mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
a8e04a7d6b
Add framebuffer methods cogl_framebuffer_[gs]et_depth_write_enabled() and backend bits to pass the state on to glDepthMask(). This allows us to enable or disable depth writing per-framebuffer, which if disabled saves us some work in glClear(). When rendering, the flag is combined with the pipeline's depth writing flag using a logical AND. Depth writing is enabled by default. https://bugzilla.gnome.org/show_bug.cgi?id=709827 Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 71406438c5357eb4e0ef03e940c5456a536602a0) |
||
---|---|---|
.. | ||
gl | ||
nop |