From: Ilia Mirkin Date: Sun, 25 Jun 2017 16:43:32 +0000 (-0400) Subject: Avoid accessing out-of-bounds input patch vertices X-Git-Tag: upstream/0.1.0~150^2~2^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a02d5d805e14805aacc4c8aea5600410e6a75439;p=platform%2Fupstream%2FVK-GL-CTS.git Avoid accessing out-of-bounds input patch vertices Fixes github issue #48. Affects: KHR-GL45.shader_subroutine.subroutines_with_separate_shader_objects Components: OpenGL --- diff --git a/external/openglcts/modules/gl/gl4cShaderSubroutineTests.cpp b/external/openglcts/modules/gl/gl4cShaderSubroutineTests.cpp index d95bb42..0ef75b3 100644 --- a/external/openglcts/modules/gl/gl4cShaderSubroutineTests.cpp +++ b/external/openglcts/modules/gl/gl4cShaderSubroutineTests.cpp @@ -6884,7 +6884,7 @@ std::string FunctionalTest13::getTessellationControlShaderBody(unsigned int n_id " gl_TessLevelOuter[3] = 1.0;\n" " gl_TessLevelInner[0] = 1.0;\n" " gl_TessLevelInner[1] = 1.0;\n" - " gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;\n" + " gl_out[gl_InvocationID].gl_Position = gl_in[0].gl_Position;\n" " out_tc[gl_InvocationID].data = in_vs[0].data;\n" "\n" " function(out_tc[gl_InvocationID].data);\n"