fix check for non-positive array size
This commit is contained in:
parent
d3d3ce7160
commit
5bdf49cdc8
4 changed files with 42 additions and 4 deletions
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue