mesa/main: correct extension-checks for GL_FRAMEBUFFER_SRGB
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 25 Feb 2019 12:18:05 +0000 (13:18 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 29 May 2019 08:54:09 +0000 (10:54 +0200)
commitc0dabc619211b83f5eb77aea03d0c1a3759f975d
tree3bd7b9850e5e0fadaa3c136c9b8bdd61bada5fd9
parenta33ff7876fa5e9c7b564791734bf47534225df13
mesa/main: correct extension-checks for GL_FRAMEBUFFER_SRGB

This enum shouldn't be allowed on OpenGL ES 1.x, so let's instead
use the extenion-helpers, and check for desktop and gles extensions
separately.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/enable.c