summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_manager.c
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2018-11-14 10:58:40 +0100
committerGert Wollny <[email protected]>2019-01-28 12:18:40 +0100
commit76c3f6fb3ff21e9cbe40345b6215ead1771b449b (patch)
treea57a81c2cce79a8d23075de5fdfbe615c804abe5 /src/mesa/state_tracker/st_manager.c
parent8f9dfb7d8812a045a38b1740e90f43a585aec58e (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_manager.c')
-rw-r--r--src/mesa/state_tracker/st_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index caf8799a7b1..5efbd1fa1d2 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -476,7 +476,7 @@ st_framebuffer_create(struct st_context *st,
* brings GLES on par with desktop GLs EXT_framebuffer_sRGB, in mesa this
* is also expressed by using the same extension flag
*/
- if (st->ctx->Extensions.EXT_framebuffer_sRGB) {
+ if (_mesa_has_EXT_framebuffer_sRGB(st->ctx)) {
struct pipe_screen *screen = st->pipe->screen;
const enum pipe_format srgb_format =
util_format_srgb(stfbi->visual->color_format);