Fix geometry shader support check
authorPyry Haulos <phaulos@google.com>
Mon, 8 Aug 2016 19:34:35 +0000 (12:34 -0700)
committerPyry Haulos <phaulos@google.com>
Mon, 8 Aug 2016 19:34:35 +0000 (12:34 -0700)
Bug: 30738286
Change-Id: I976d76cd417e1c0b456d252f50a8979f30d5be3f

modules/gles31/functional/es31fGeometryShaderTests.cpp

index 3926a8e..715c3ee 100644 (file)
@@ -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.");
 }