From 663cf7a9fec574036cdb028b8473317f104ae2dd Mon Sep 17 00:00:00 2001 From: James Glanville Date: Fri, 17 Apr 2020 11:54:40 +0100 Subject: [PATCH] Stop 10bit formats requiring GL_SRGB encoding The EGL_KHR_gl_colorspace spec does not require formats that are not SRGB8 to respect the given EGL_GL_COLORSPACE_KHR. Components: EGL VK-GL-CTS issue: 2288 Affects: dEQP-EGL.functional.wide_color.window_1010102_colorspace_srgb dEQP-EGL.functional.wide_color.pbuffer_1010102_colorspace_srgb Change-Id: I41ab6c6a0467a29cf7e5e764bf2b2cfb78c51db3 --- modules/egl/teglWideColorTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/egl/teglWideColorTests.cpp b/modules/egl/teglWideColorTests.cpp index 16be114..f4ac0be 100644 --- a/modules/egl/teglWideColorTests.cpp +++ b/modules/egl/teglWideColorTests.cpp @@ -1121,7 +1121,7 @@ void WideColorSurfaceTest::testFramebufferColorEncoding() bool correct = false; if (m_colorSpace == EGL_GL_COLORSPACE_SRGB_KHR || m_colorSpace == EGL_GL_COLORSPACE_DISPLAY_P3_EXT) { - if (m_redSize == 8 || m_redSize == 10) + if (m_redSize == 8) { correct = framebufferColorEncoding == GL_SRGB; } -- 2.7.4