summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-08-19 11:31:10 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-08-19 11:31:10 -0600
commitbec1519a3202f94c5642dd94ce89cc2ff767aa3b (patch)
tree139f880eb0b369ebf2879dc6a043d319d61ebb7d /src
parentc4cf2513e60a90a5b3a6238684a6b51e1f501864 (diff)
mesa: glsl: added some post incr/decr error checks
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index e5a2c61d4f..6cadd2c250 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -2729,7 +2729,11 @@ _slang_assignment_compatible(slang_assemble_ctx *A,
slang_typeinfo t0, t1;
GLuint sz0, sz1;
-
+ if (op0->type == SLANG_OPER_POSTINCREMENT ||
+ op0->type == SLANG_OPER_POSTDECREMENT) {
+ return GL_FALSE;
+ }
+
slang_typeinfo_construct(&t0);
_slang_typeof_operation(A, op0, &t0);