From: Brian Date: Fri, 11 May 2007 21:34:29 +0000 (-0600) Subject: don't ignore return value of _slang_codegen_global_variable() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=749e093e33a46a7201ec795e71e7fba6f756da7b;p=mesa.git don't ignore return value of _slang_codegen_global_variable() --- diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index f23a29633bd..a4dd5b8b4ae 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -1618,7 +1618,8 @@ parse_init_declarator(slang_parse_ctx * C, slang_output_ctx * O, A.program = O->program; A.vartable = O->vartable; A.curFuncEndLabel = NULL; - _slang_codegen_global_variable(&A, var, C->type); + if (!_slang_codegen_global_variable(&A, var, C->type)) + return 0; } /* allocate global address space for a variable with a known size */