diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-30 14:51:50 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-30 14:51:50 -0700 |
commit | 97eba76b8c5fe60738716c4dce9404de417a7d34 (patch) | |
tree | 4fd4d50d7799f2bcc9716c6de051e3f10ce83768 /src/glsl/linker.cpp | |
parent | 3e2127b9dea6fd0628c4d7cb9e338d83583d2729 (diff) |
glsl2: Allow a fragment shader to not write a color.
I can't find any text justifying this check, and it caused a
reasonable-looking shader in glsl-bug-22603 (which writes only
gl_FragDepth) to fail.
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 11fccba378..5227d42e35 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -232,12 +232,6 @@ validate_fragment_shader_executable(struct gl_shader_program *prog, frag_color.run(shader->ir); frag_data.run(shader->ir); - if (!frag_color.variable_found() && !frag_data.variable_found()) { - linker_error_printf(prog, "fragment shader does not write to " - "`gl_FragColor' or `gl_FragData'\n"); - return false; - } - if (frag_color.variable_found() && frag_data.variable_found()) { linker_error_printf(prog, "fragment shader writes to both " "`gl_FragColor' and `gl_FragData'\n"); |