mesa/main: Use flag for EXT_sRGB instead of EXT_framebuffer_sRGB where possible
authorGert Wollny <gert.wollny@collabora.com>
Wed, 14 Nov 2018 09:58:40 +0000 (10:58 +0100)
committerGert Wollny <gert.wollny@collabora.com>
Mon, 28 Jan 2019 11:18:40 +0000 (12:18 +0100)
commit76c3f6fb3ff21e9cbe40345b6215ead1771b449b
treea57a81c2cce79a8d23075de5fdfbe615c804abe5
parent8f9dfb7d8812a045a38b1740e90f43a585aec58e
mesa/main: Use flag for EXT_sRGB instead of EXT_framebuffer_sRGB where possible

All drivers that support EXT_framebuffer_sRGB also support EXT_sRGB, but
in order to keep this commit minial, and not to break any drivers both
flags are checked.

v2: - Use only EXT_sRGB (Ilia Mirkin)
    - Move adding the flag EXT_sRGB to gl_extensions to a separate patch

v3: use _mesa_has_EXT_framebuffer_sRGB instead of extension flag
    The _mesa_has function also checks for the correct versions and
    should be preferred over using the flags directly (Erik)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/fbobject.c
src/mesa/main/formatquery.c
src/mesa/main/framebuffer.c
src/mesa/main/teximage.c
src/mesa/state_tracker/st_manager.c