Commit ad9d7cf4 authored by Eric Anholt's avatar Eric Anholt

Use a common file for gl_FragColor = glColor shader.

parent 8c55f389
......@@ -72,7 +72,7 @@ void piglit_init(int argc, char **argv)
vs = piglit_compile_shader(GL_VERTEX_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-arrays.vert");
fs = piglit_compile_shader(GL_FRAGMENT_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-arrays.frag");
SOURCE_DIR "tests/shaders/glsl-color.frag");
prog = piglit_link_simple_program(vs, fs);
......
......@@ -75,7 +75,7 @@ void piglit_init(int argc, char **argv)
vs = piglit_compile_shader(GL_VERTEX_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-if-bool.vert");
fs = piglit_compile_shader(GL_FRAGMENT_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-if-bool.frag");
SOURCE_DIR "tests/shaders/glsl-color.frag");
prog = piglit_link_simple_program(vs, fs);
......
void main()
{
gl_FragColor = gl_Color;
}
......@@ -73,7 +73,7 @@ piglit_init(int argc, char **argv)
vs = piglit_compile_shader(GL_VERTEX_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-if.vert");
fs = piglit_compile_shader(GL_FRAGMENT_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-if.frag");
SOURCE_DIR "tests/shaders/glsl-color.frag");
prog = piglit_link_simple_program(vs, fs);
......
void main()
{
gl_FragColor = gl_Color;
}
......@@ -110,7 +110,7 @@ piglit_init(int argc, char **argv)
vs = piglit_compile_shader(GL_VERTEX_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-loop.vert");
fs = piglit_compile_shader(GL_FRAGMENT_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-loop.frag");
SOURCE_DIR "tests/shaders/glsl-color.frag");
prog = piglit_link_simple_program(vs, fs);
......
void main()
{
gl_FragColor = gl_Color;
}
......@@ -72,7 +72,7 @@ void piglit_init(int argc, char **argv)
vs = piglit_compile_shader(GL_VERTEX_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-mov-after-deref.vert");
fs = piglit_compile_shader(GL_FRAGMENT_SHADER,
SOURCE_DIR "tests/shaders/glsl-vs-mov-after-deref.frag");
SOURCE_DIR "tests/shaders/glsl-color.frag");
prog = piglit_link_simple_program(vs, fs);
......
void main()
{
gl_FragColor = gl_Color;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment