glsl: Return NULL on _slan_gen_asm error path on non-debug builds.
Exit the function early on the error path, instead of continuing, to prevent a null pointer dereference later on.
This commit is contained in:
parent
df20c3943a
commit
3c90777fd7
|
@ -1894,6 +1894,7 @@ _slang_gen_asm(slang_assemble_ctx *A, slang_operation *oper,
|
|||
_mesa_problem(NULL, "undefined __asm function %s\n",
|
||||
(char *) oper->a_id);
|
||||
assert(info);
|
||||
return NULL;
|
||||
}
|
||||
assert(info->NumParams <= 3);
|
||||
|
||||
|
|
Loading…
Reference in New Issue