From 4b3fe8731e24ef3622027caf7f0a5cbfa438388d Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Wed, 16 May 2018 11:01:52 +0000 Subject: [PATCH] GL_SRG8_ALPHA8 also supported in OpenGL ES 3.0+ dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.srgb8_alpha8 assumes that using GL_SRGB8_ALPHA8 in GLES2 should fail unless proper extensions are supported. But the OpenGL ES context created can be either 2.0 or an upper version, and upper versions (3.0+) supports this format without extensions. Thus, if OpenGL ES 3.0+ context is returned, this test should assume that rendering is possible. This is an extension of fix done in Change-ID Ibb95736959ff9d5b0ff972ccf3983abc98795be3. Affectd tests: dEQP-GLES2.functional.fbo.completeness.renderable.texture.color0.srgb8_alpha8 Components: OpenGL VK-GL-CTS issue: 1137 Change-Id: I733a8595b1eba7756787cde4a6bca2391dc345d7 (cherry picked from commit dd951adf61b3b6ad6cdab92b26b00c6931235681) --- modules/gles2/functional/es2fFboCompletenessTests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gles2/functional/es2fFboCompletenessTests.cpp b/modules/gles2/functional/es2fFboCompletenessTests.cpp index fd07273..f1333b5 100644 --- a/modules/gles2/functional/es2fFboCompletenessTests.cpp +++ b/modules/gles2/functional/es2fFboCompletenessTests.cpp @@ -126,6 +126,7 @@ static const FormatKey s_es3NoExtTextureColorRenderableFormats[] = GL_RGBA8, GL_RGB10_A2, GL_RGB565, + GL_SRGB8_ALPHA8, }; // with ES3 core and GL_EXT_color_buffer_float -- 2.7.4