aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-04 10:58:13 -0600
committerBrian Paul <[email protected]>2008-08-04 17:14:48 -0600
commit26ec3780b85765a681f3f365137ee2ecd63d37fc (patch)
treeafe872b3310e34022e7eaef2a02594e381c9650f /src/mesa
parente68a3ef1efc3873afb64acd15a0ea27a6ba54bda (diff)
mesa: glsl: fix initialize size error check
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 92c96bef9ee..70feed73266 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -2687,7 +2687,7 @@ _slang_gen_declaration(slang_assemble_ctx *A, slang_operation *oper)
if (!rhs)
return NULL;
- if (!rhs->Store || var->Store->Size != rhs->Store->Size) {
+ if (rhs->Store && var->Store->Size != rhs->Store->Size) {
slang_info_log_error(A->log, "invalid assignment (wrong types)");
return NULL;
}