diff options
author | Vinson Lee <[email protected]> | 2010-02-27 17:01:25 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-27 17:01:25 -0800 |
commit | 65974f67e16187e1827fa4e46bde3b5df7a5bf02 (patch) | |
tree | 63c9974557ebbf5bc6e916066dcfa662c0a18553 /src/mesa | |
parent | cab77711b3e8d398393677bcefcd413f50503a64 (diff) |
glsl: Move assert from outside to inside of _slang_gen_swizzle function.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 2 |
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 9ca5c1372d8..6d1cea28a7f 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -4223,6 +4223,7 @@ _slang_gen_swizzle(slang_ir_node *child, GLuint swizzle) n->Store = _slang_new_ir_storage_relative(0, swizzle_size(swizzle), child->Store); + assert(n->Store); n->Store->Swizzle = swizzle; } return n; @@ -4524,7 +4525,6 @@ _slang_gen_array_element(slang_assemble_ctx * A, slang_operation *oper) SWIZZLE_NIL); n = _slang_gen_swizzle(n, swizzle); } - assert(n->Store); return n; } else { |