GLSL: Fix #1359: don't allow unsized arrays as initializers.
This commit is contained in:
@@ -27,7 +27,8 @@ ERROR: 0:104: '=' : cannot convert from ' const float' to ' global unsized 1-el
|
||||
ERROR: 0:106: 'constructor' : array argument must be sized
|
||||
ERROR: 0:111: 'variable index' : required extension not requested: GL_EXT_nonuniform_qualifier
|
||||
ERROR: 0:111: 'variable indexing sampler array' : not supported with this profile: none
|
||||
ERROR: 28 compilation errors. No code generated.
|
||||
ERROR: 0:112: '[]' : array initializer must be sized
|
||||
ERROR: 29 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 130
|
||||
@@ -272,6 +273,10 @@ ERROR: node is still EOpNull!
|
||||
0:111 indirect index ( temp sampler2D)
|
||||
0:111 's2d' ( uniform runtime-sized array of sampler2D)
|
||||
0:111 'a' ( uniform int)
|
||||
0:112 Sequence
|
||||
0:112 move second child to first child ( temp unsized 1-element array of float)
|
||||
0:112 'local' ( temp unsized 1-element array of float)
|
||||
0:112 'gUnusedUnsized' ( global unsized 1-element array of float)
|
||||
0:? Linker Objects
|
||||
0:? 'gu' ( global runtime-sized array of float)
|
||||
0:? 'g4' ( global 4-element array of float)
|
||||
|
||||
Reference in New Issue
Block a user