Accept gl_ViewportMask in version 430 and later
Was previously accepted only in 450 or later. Fixes #2785
This commit is contained in:
parent
6351fcef28
commit
6639be7c2d
3 changed files with 29 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#version 450
|
||||
#version 430
|
||||
#extension GL_NV_viewport_array2 :require
|
||||
|
||||
layout(vertices = 4) out;
|
||||
|
|
@ -12,5 +12,4 @@ layout (viewport_relative) out highp int gl_Layer;
|
|||
void main()
|
||||
{
|
||||
gl_out[gl_InvocationID].gl_ViewportMask[0] = 1;
|
||||
gl_ViewportIndex = 2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue