Fix segfault with atomic arg check
Makes sure that we have an l-value before checking the storage type of the mem argument passed to an atomic memory operation. Fixes #3332.
This commit is contained in:
parent
323836e46b
commit
efc33d1ee5
5 changed files with 30 additions and 6 deletions
7
Test/spv.atomicRvalue.error.vert
Normal file
7
Test/spv.atomicRvalue.error.vert
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#version 440
|
||||
|
||||
void main() {
|
||||
uint a = 5;
|
||||
atomicAdd(a * 2, 0);
|
||||
atomicAdd(a, 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue