enable: Create _mesa_set_framebuffer_srgb() function for use by meta ops.
authorPaul Berry <stereotype441@gmail.com>
Mon, 24 Sep 2012 21:24:28 +0000 (14:24 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 25 Sep 2012 22:01:13 +0000 (15:01 -0700)
commit8faa79764c394ce5ec87c5376afb5643f99c53e7
tree18ead5a1b8d92d09e8c9437083a8975b1b99bf0a
parent399a03fdd63e28b719a62c5597a9aa8d56a9dd96
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>
src/mesa/main/enable.c
src/mesa/main/enable.h