Fix geometry point size extension check
authorMika Isojärvi <misojarvi@google.com>
Wed, 16 Mar 2016 22:05:08 +0000 (15:05 -0700)
committerMika Isojärvi <misojarvi@google.com>
Wed, 16 Mar 2016 22:05:08 +0000 (15:05 -0700)
Bug: 27701866
Change-Id: I6870bb32da7d1f1b7fed9e56873eb4eafcdc7057

modules/gles31/functional/es31fGeometryShaderTests.cpp

index a1b2503..3926a8e 100644 (file)
@@ -2600,8 +2600,8 @@ void BuiltinVariableRenderTest::init (void)
 
                tcu::Vec2 range = tcu::Vec2(1.0f, 1.0f);
 
-               if (m_context.getContextInfo().isExtensionSupported("GL_EXT_geometry_point_size"))
-                       TCU_THROW(NotSupportedError, "Tests require GL_EXT_geometry_shader extension.");
+               if (!m_context.getContextInfo().isExtensionSupported("GL_EXT_geometry_point_size"))
+                       TCU_THROW(NotSupportedError, "Tests require GL_EXT_geometry_point_size extension.");
 
                m_context.getRenderContext().getFunctions().getFloatv(GL_ALIASED_POINT_SIZE_RANGE, range.getPtr());
                if (range.y() < requiredPointSize)