diff options
author | Sebastian Olender <sebastian.d.olender@intel.com> | 2016-11-21 13:43:27 +0100 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2016-12-14 13:53:16 +0200 |
commit | 706de0e5b9c7d232e821651d181d72e00cd3b103 (patch) | |
tree | 250ba20dbbd0625592bbd60efbf9b4cc972d3670 /tests/texturing | |
parent | 46348110dce4e7c8f0a42213dc3979989a450b29 (diff) |
textureGather: replace gl_FragColor with user defined one
Use of gl_FragColor is deprecated since glsl 1.3
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'tests/texturing')
-rw-r--r-- | tests/texturing/shaders/textureGather.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/texturing/shaders/textureGather.c b/tests/texturing/shaders/textureGather.c index 226ddeb49..81c6a9787 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" : "", |