fix check for non-positive array size
This commit is contained in:
10
Test/negativeArraySize.comp
Normal file
10
Test/negativeArraySize.comp
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 310 es
|
||||
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
void main()
|
||||
{
|
||||
float f[-2]; // cannot declare arrays with negative size
|
||||
}
|
||||
Reference in New Issue
Block a user