mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 01:00:25 +01:00
glsl: set shader->CompileStatus in _slang_compile()
This commit is contained in:
parent
596b8fbbbf
commit
cb136e0476
2 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue