From 83470b2dcbff396773f94d7a1448c12362ad3380 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Mon, 8 Aug 2016 12:34:35 -0700 Subject: [PATCH] Fix geometry shader support check Bug: 30738286 Change-Id: I976d76cd417e1c0b456d252f50a8979f30d5be3f --- modules/gles31/functional/es31fGeometryShaderTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gles31/functional/es31fGeometryShaderTests.cpp b/modules/gles31/functional/es31fGeometryShaderTests.cpp index 3926a8e..715c3ee 100644 --- a/modules/gles31/functional/es31fGeometryShaderTests.cpp +++ b/modules/gles31/functional/es31fGeometryShaderTests.cpp @@ -3947,7 +3947,7 @@ GeometryProgramQueryCase::GeometryProgramQueryCase (Context& context, const char void GeometryProgramQueryCase::init (void) { - if (!m_context.getContextInfo().isExtensionSupported("GL_EXT_geometry_shader") && glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2))) + if (!(m_context.getContextInfo().isExtensionSupported("GL_EXT_geometry_shader") || glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2)))) TCU_THROW(NotSupportedError, "Tests require GL_EXT_geometry_shader extension or higher context version."); } -- 2.7.4