Add missing extension-require statement to geometry query tests.
authorJarkko Pöyry <jpoyry@google.com>
Wed, 4 Feb 2015 19:10:11 +0000 (11:10 -0800)
committerJarkko Pöyry <jpoyry@google.com>
Wed, 4 Feb 2015 19:23:43 +0000 (11:23 -0800)
Bug: 19261758
Change-Id: Id788103f6aada884cd47e0707deaabeed0b36b8c

modules/gles31/functional/es31fGeometryShaderTests.cpp

index 6e374a5..e3b0891 100644 (file)
@@ -3878,7 +3878,12 @@ GeometryProgramQueryCase::IterateResult GeometryProgramQueryCase::iterate (void)
        // not linked -case (INVALID OP)
        {
                const tcu::ScopedLogSection section                     (m_testCtx.getLog(), "NotLinkedProgram", "Shader program not linked");
-               const std::string                       geometrySource  = "#version 310 es\nlayout (triangles) in;\n" + std::string(s_geometryBody);
+               const std::string                       geometrySource  = "#version 310 es\n"
+                                                                                                         "#extension GL_EXT_geometry_shader : require\n"
+                                                                                                         "layout (triangles) in;\n"
+                                                                                                         "layout (points, max_vertices = 3) out;\n"
+                                                                                                         + std::string(s_geometryBody);
+
 
                glu::Shader                                     vertexShader    (m_context.getRenderContext(), glu::SHADERTYPE_VERTEX);
                glu::Shader                                     fragmentShader  (m_context.getRenderContext(), glu::SHADERTYPE_FRAGMENT);