summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-03-07 08:56:09 -0700
committerBrian <[email protected]>2007-03-07 08:56:09 -0700
commitd25046b6487aaaa55cc2e3cfa57fe75a1c9d6de1 (patch)
treee6eb295fab6e7a334a3e1d8385f3f67ef0209bc8 /src/mesa/shader
parente61ec95deb6e7edb2b003036773d57cc70d2c275 (diff)
fix incorrect HPOS write test
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index e564d6d5767..a3cc2333ec1 100644
--- a/src/mesa/shader/slang/slang_link.c
+++ b/src/mesa/shader/slang/slang_link.c
@@ -550,13 +550,13 @@ _slang_link(GLcontext *ctx,
if (shProg->VertexProgram) {
_slang_update_inputs_outputs(&shProg->VertexProgram->Base);
- if (!(shProg->VertexProgram->Base.OutputsWritten & VERT_RESULT_HPOS)) {
+ if (!(shProg->VertexProgram->Base.OutputsWritten & (1 << VERT_RESULT_HPOS))) {
/* the vertex program did not compute a vertex position */
if (shProg->InfoLog) {
_mesa_free(shProg->InfoLog);
}
shProg->InfoLog
- = _mesa_strdup("gl_Position was not written by vertex shader");
+ = _mesa_strdup("gl_Position was not written by vertex shader\n");
shProg->LinkStatus = GL_FALSE;
return;
}