From: Lionel Landwerlin Date: Fri, 16 Dec 2016 13:17:02 +0000 (+0000) Subject: Make vertex shader boilerplate to set gl_Position X-Git-Tag: upstream/0.1.0~498 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6fe6b9b000199cd2787fb2b66d7898ce753d6f9;p=platform%2Fupstream%2FVK-GL-CTS.git Make vertex shader boilerplate to set gl_Position If we don't generate any fragment from the previous stages, the fragment shader might not be run. Hence invalid results for GL45-CTS.shader_image_load_store.multiple-uniforms in the fragment stage. Components: OpenGL Affects: GL45-CTS.shader_image_load_store.multiple-uniforms VK-GL-CTS issue: 30 Change-Id: I6342e27ffd51725879fe1519d81122f41cb81eef --- diff --git a/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp b/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp index 11703d5..c7c55aa 100644 --- a/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp +++ b/external/openglcts/modules/gl/gl4cShaderImageLoadStoreTests.cpp @@ -9034,9 +9034,11 @@ private: "\n" "precision highp float;\n" "\n" + "layout(location = 0) in vec4 i_position;\n" + "\n" "void main()\n" "{\n" - "\n" + " gl_Position = i_position;\n" "}\n"; const char* fragment_shader_code = boilerplate_fragment_shader_code;