glsl: set shader->CompileStatus in _slang_compile()

This commit is contained in:
Brian Paul 2009-01-22 10:34:15 -07:00
parent 596b8fbbbf
commit cb136e0476
2 changed files with 6 additions and 1 deletions

View file

@ -1357,7 +1357,10 @@ _mesa_compile_shader(GLcontext *ctx, GLuint shaderObj)
if (!sh)
return;
sh->CompileStatus = _slang_compile(ctx, sh);
/* this call will set the sh->CompileStatus field to indicate if
* compilation was successful.
*/
(void) _slang_compile(ctx, sh);
}

View file

@ -2794,6 +2794,8 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader)
_mesa_print_program(shader->Program);
#endif
shader->CompileStatus = success;
return success;
}