summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-09-24 14:24:28 -0700
committerPaul Berry <stereotype441@gmail.com>2012-09-25 15:01:13 -0700
commit8faa79764c394ce5ec87c5376afb5643f99c53e7 (patch)
tree18ead5a1b8d92d09e8c9437083a8975b1b99bf0a /src/mesa/main/enable.h
parent399a03fdd63e28b719a62c5597a9aa8d56a9dd96 (diff)
downloadexternal_mesa3d-8faa79764c394ce5ec87c5376afb5643f99c53e7.zip
external_mesa3d-8faa79764c394ce5ec87c5376afb5643f99c53e7.tar.gz
external_mesa3d-8faa79764c394ce5ec87c5376afb5643f99c53e7.tar.bz2
enable: Create _mesa_set_framebuffer_srgb() function for use by meta ops.
GLES3 supports sRGB formats, but it does not support the GL_FRAMEBUFFER_SRGB enable/disable flag (instead it behaves as if this flag is always enabled). Therefore, meta ops that need to disable GL_FRAMEBUFFER_SRGB will need a backdoor mechanism to do so when the API is GLES3. We were already doing a similar thing for GL_MULTISAMPLE, which has the same constraints. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/mesa/main/enable.h')
-rw-r--r--src/mesa/main/enable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/enable.h b/src/mesa/main/enable.h
index c49b494..be79094 100644
--- a/src/mesa/main/enable.h
+++ b/src/mesa/main/enable.h
@@ -70,6 +70,9 @@ _mesa_DisableClientState( GLenum cap );
extern void
_mesa_set_multisample(struct gl_context *ctx, GLboolean state);
+extern void
+_mesa_set_framebuffer_srgb(struct gl_context *ctx, GLboolean state);
+
#endif