mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
efc33d1ee5
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.
8 lines
92 B
GLSL
8 lines
92 B
GLSL
#version 440
|
|
|
|
void main() {
|
|
uint a = 5;
|
|
atomicAdd(a * 2, 0);
|
|
atomicAdd(a, 0);
|
|
}
|