Check for context version or extension support.
authorDaniel Andrade Groppe <daniel.andrade@mobica.com>
Fri, 19 Feb 2016 16:06:30 +0000 (11:06 -0500)
committerDaniel Andrade Groppe <daniel.andrade@mobica.com>
Fri, 19 Feb 2016 16:06:30 +0000 (11:06 -0500)
Change-Id: I185196511ac639753e5ccd7350224e3ce14d8b70

modules/gles31/functional/es31fShaderMultisampleInterpolationStateQueryTests.cpp

index 64fa4ed..a235e43 100644 (file)
@@ -78,7 +78,9 @@ InterpolationOffsetCase::~InterpolationOffsetCase (void)
 
 void InterpolationOffsetCase::init (void)
 {
-       if (!m_context.getContextInfo().isExtensionSupported("GL_OES_shader_multisample_interpolation"))
+       const bool isES32 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2));
+
+       if (!isES32 && !m_context.getContextInfo().isExtensionSupported("GL_OES_shader_multisample_interpolation"))
                throw tcu::NotSupportedError("Test requires GL_OES_shader_multisample_interpolation extension");
 }
 
@@ -124,7 +126,9 @@ FragmentInterpolationOffsetBitsCase::~FragmentInterpolationOffsetBitsCase (void)
 
 void FragmentInterpolationOffsetBitsCase::init (void)
 {
-       if (!m_context.getContextInfo().isExtensionSupported("GL_OES_shader_multisample_interpolation"))
+       const bool isES32 = glu::contextSupports(m_context.getRenderContext().getType(), glu::ApiType::es(3, 2));
+
+       if (!isES32 && !m_context.getContextInfo().isExtensionSupported("GL_OES_shader_multisample_interpolation"))
                throw tcu::NotSupportedError("Test requires GL_OES_shader_multisample_interpolation extension");
 }