summaryrefslogtreecommitdiff
path: root/src/glsl/linker.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-07-16 15:52:40 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-07-19 14:50:43 -0700
commit1a03a644d2f933fbbbe535e584a92fdf1ad619f1 (patch)
tree2a17a561dfc1c2ad81fd36f31543b03025e977c1 /src/glsl/linker.cpp
parent25f51d3b9b8c36c41cd23d2797b6a06f6e27ff86 (diff)
linker: Remove redundant check for 'main' in shaders
This is now handled in link_intrastage_shaders.
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r--src/glsl/linker.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 4933686b5e..a4776b1941 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -192,11 +192,6 @@ validate_vertex_shader_executable(struct gl_shader_program *prog,
if (shader == NULL)
return true;
- if (!shader->symbols->get_function("main")) {
- linker_error_printf(prog, "vertex shader lacks `main'\n");
- return false;
- }
-
find_assignment_visitor find("gl_Position");
find.run(shader->ir);
if (!find.variable_found()) {
@@ -221,11 +216,6 @@ validate_fragment_shader_executable(struct gl_shader_program *prog,
if (shader == NULL)
return true;
- if (!shader->symbols->get_function("main")) {
- linker_error_printf(prog, "fragment shader lacks `main'\n");
- return false;
- }
-
find_assignment_visitor frag_color("gl_FragColor");
find_assignment_visitor frag_data("gl_FragData");