From: Brian Paul Date: Tue, 19 Aug 2008 17:31:10 +0000 (-0600) Subject: mesa: glsl: added some post incr/decr error checks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bec1519a3202f94c5642dd94ce89cc2ff767aa3b;p=mesa.git mesa: glsl: added some post incr/decr error checks --- diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index e5a2c61d4f3..6cadd2c2507 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);