[Piglit] [Patch] textureGather: replace gl_FragColor with user defined one
Tapani Pälli
tapani.palli at intel.com
Wed Dec 14 11:52:03 UTC 2016
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 11/21/2016 02:43 PM, Sebastian Olender wrote:
> 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" : "",
More information about the Piglit
mailing list