[Piglit] [Patch] textureGather: replace gl_FragColor with user defined one

Sebastian Olender sebastian.d.olender at intel.com
Mon Nov 21 12:43:27 UTC 2016


Use of gl_FragColor is deprecated since glsl 1.3
---
 tests/texturing/shaders/textureGather.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/texturing/shaders/textureGather.c b/tests/texturing/shaders/textureGather.c
index 226ddeb..81c6a97 100644
--- a/tests/texturing/shaders/textureGather.c
+++ b/tests/texturing/shaders/textureGather.c
@@ -457,8 +457,9 @@ do_shader_setup(void)
 				"\n"
 				"in vec4 c;\n"
 				"\n"
+				"out vec4 fragColor;\n"
 				"void main() {\n"
-				"	gl_FragColor = c;\n"
+				"	fragColor = c;\n"
 				"}\n",
 				need_shader5 ? "150" : "130");
 	}
@@ -481,8 +482,9 @@ do_shader_setup(void)
 				"uniform %ssampler%s%s s;\n"
 				"%s"
 				"\n"
+				"out vec4 fragColor;\n"
 				"void main() {\n"
-				"	gl_FragColor = %s * textureGather%s(s, %s %s %s %s);\n"
+				"	fragColor = %s * textureGather%s(s, %s %s %s %s);\n"
 				"}\n",
 				need_shader5 ? "150" : "130",
 				sampler == SAMPLER_CUBEARRAY ? "#extension GL_ARB_texture_cube_map_array: require\n" : "",
-- 
2.7.4



More information about the Piglit mailing list