glsl: set shader->CompileStatus in _slang_compile()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2794,6 +2794,8 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader)
|
||||
_mesa_print_program(shader->Program);
|
||||
#endif
|
||||
|
||||
shader->CompileStatus = success;
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user