mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 01:50:25 +01:00
mesa: glsl: added some post incr/decr error checks
This commit is contained in:
parent
c4cf2513e6
commit
bec1519a32
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue