[Mesa-dev] [RFC PATCH 4/8] mesa/main/version: Lower the requirements for GLES 3.0

Gert Wollny gw.fossdev at gmail.com
Tue Nov 13 17:27:44 UTC 2018


From: Gert Wollny <gert.wollny at collabora.com>

GLES 3.0 does not actually require support for EXT_framebuffer_sRGB, it
only needs support for sRGB attachments to framebuffers.

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
 src/mesa/main/version.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 610ba2f08c..2f7ac75a81 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -512,8 +512,9 @@ compute_version_es2(const struct gl_extensions *extensions,
                          extensions->ARB_texture_float &&
                          extensions->ARB_texture_rg &&
                          extensions->ARB_depth_buffer_float &&
-                         /* extensions->ARB_framebuffer_object && */
-                         extensions->EXT_framebuffer_sRGB &&
+                         (extensions->EXT_framebuffer_sRGB ||
+                          (extensions->ARB_framebuffer_object &&
+                           extensions->EXT_sRGB)) &&
                          extensions->EXT_packed_float &&
                          extensions->EXT_texture_array &&
                          extensions->EXT_texture_shared_exponent &&
-- 
2.18.1



More information about the mesa-dev mailing list