mutter/cogl/driver/gl
Hans Petter Jansson a8e04a7d6b Add API to control per-framebuffer depth writing
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)
2013-10-28 16:34:58 +00:00
..
gl Always add the #version pragma to shaders 2013-09-02 16:22:01 +01:00
gles Always add the #version pragma to shaders 2013-09-02 16:22:01 +01:00
cogl-attribute-gl-private.h
cogl-attribute-gl.c generalize driver description and selection 2013-08-23 14:51:43 +01:00
cogl-buffer-gl-private.h
cogl-buffer-gl.c buffer: Don't set the invalidate hint when requesting read access 2013-02-19 15:03:30 +00:00
cogl-clip-stack-gl-private.h
cogl-clip-stack-gl.c Separate out CoglPath api into sub-library 2013-08-19 22:44:35 +01:00
cogl-framebuffer-gl-private.h framebuffer: Bind the framebuffer before querying the bits 2013-01-22 17:48:18 +00:00
cogl-framebuffer-gl.c Add API to control per-framebuffer depth writing 2013-10-28 16:34:58 +00:00
cogl-pipeline-fragend-fixed-private.h
cogl-pipeline-fragend-fixed.c Remove cogl-internal.h 2013-01-22 17:48:17 +00:00
cogl-pipeline-fragend-glsl-private.h
cogl-pipeline-fragend-glsl.c Add the cogl_point_coord snippet builtin 2013-09-02 16:22:08 +01:00
cogl-pipeline-opengl-private.h pipeline: improve real_blend_enable checks 2013-06-06 21:27:09 +01:00
cogl-pipeline-opengl.c Add API to control per-framebuffer depth writing 2013-10-28 16:34:58 +00:00
cogl-pipeline-progend-fixed-private.h
cogl-pipeline-progend-fixed.c generalize driver description and selection 2013-08-23 14:51:43 +01:00
cogl-pipeline-progend-glsl-private.h
cogl-pipeline-progend-glsl.c gl: bind position attribute to location 0 2013-08-19 22:44:45 +01:00
cogl-pipeline-vertend-fixed-private.h
cogl-pipeline-vertend-fixed.c Don't generate GLSL for the point size for default pipelines 2013-06-21 14:18:37 +01:00
cogl-pipeline-vertend-glsl-private.h
cogl-pipeline-vertend-glsl.c Always add the #version pragma to shaders 2013-09-02 16:22:01 +01:00
cogl-texture-2d-gl-private.h texture: remove _cogl_texture_prepare_for_upload 2013-07-29 16:31:44 +01:00
cogl-texture-2d-gl.c texture: remove _cogl_texture_prepare_for_upload 2013-07-29 16:31:44 +01:00
cogl-texture-gl-private.h Move _cogl_texture_get_gl_format to -texture-gl.c 2013-01-22 17:48:17 +00:00
cogl-texture-gl.c cogl-texture-gl.c: Don't include strings.h unconditionally 2013-08-19 22:44:45 +01:00
cogl-util-gl-private.h Add the layer's sampler and uniform declarations at the start 2013-02-27 15:53:43 +00:00
cogl-util-gl.c Add the layer's sampler and uniform declarations at the start 2013-02-27 15:53:43 +00:00