Fix crash on bad structure member reference

Fixes #3105
This commit is contained in:
Greg Fischer
2023-01-10 18:50:18 -07:00
parent 06a7078ce7
commit 9b67d41b85
4 changed files with 66 additions and 6 deletions

14
Test/struct.error.frag Normal file
View File

@@ -0,0 +1,14 @@
#version 460
struct A {
float x;
};
A test() {
return A(1.0);
}
void main() {
test().z; // A.z does not exist, causes a crash
}