gl_spirv: Correct ARB_gl_spirv check function type
authorAndres Gomez <agomez@igalia.com>
Thu, 1 Feb 2018 10:03:21 +0000 (12:03 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 1 Feb 2018 12:45:25 +0000 (07:45 -0500)
The check for GL_ARB_gl_spirv or GL 4.6 doesn't return anything but
just throws an exception. This corrects the type of the call.

Affects:

KHR-GL45.gl_spirv.*

Components: OpenGL

VK-GL-CTS issue: 981

Change-Id: Ic051d7949672b7a824ebe5c67761be866cd1877f

external/openglcts/modules/gl/gl4cGlSpirvTests.cpp

index 7e9e9bb..7c0b997 100644 (file)
@@ -517,7 +517,7 @@ bool compareUintColors(const GLuint inColor, const GLuint refColor, const int ep
        return false;
 }
 
-bool checkGlSpirvSupported(deqp::Context& m_context)
+void checkGlSpirvSupported(deqp::Context& m_context)
 {
        bool is_at_least_gl_46 = (glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::core(4, 6)));
        bool is_arb_gl_spirv = m_context.getContextInfo().isExtensionSupported("GL_ARB_gl_spirv");