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:
Vinson Lee 2010-03-04 00:58:36 -08:00
parent df20c3943a
commit 3c90777fd7
1 changed files with 1 additions and 0 deletions

View File

@ -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);