summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-05-11 15:34:29 -0600
committerBrian <[email protected]>2007-05-11 15:34:29 -0600
commit749e093e33a46a7201ec795e71e7fba6f756da7b (patch)
tree0799871f004d5f05a43db5bc3a689f5e25d54d6e /src/mesa/shader
parenteab6e1652271f46361f95e21e9e5afcb5ffa37d7 (diff)
don't ignore return value of _slang_codegen_global_variable()
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/slang_compile.c3
1 files changed, 2 insertions, 1 deletions
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 */