Allow gl_FragColor and gl_FragData in non-forward-compatible contexts for non-ES versions 150 - 410. Also add deprecation message for attribute/varying for core profile.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20714 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
df807514b6
commit
ef8ae2e345
5 changed files with 31 additions and 3 deletions
12
Test/330.frag
Normal file
12
Test/330.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 330
|
||||
|
||||
in vec4 inVar;
|
||||
out vec4 outVar;
|
||||
|
||||
varying vec4 varyingVar;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = varyingVar;
|
||||
gl_FragData[1] = inVar;
|
||||
}
|
||||
12
Test/330comp.frag
Normal file
12
Test/330comp.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 330 compatibility
|
||||
|
||||
in vec4 inVar;
|
||||
out vec4 outVar;
|
||||
|
||||
varying vec4 varyingVar;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = varyingVar;
|
||||
gl_FragData[1] = inVar * gl_ModelViewMatrix;
|
||||
}
|
||||
|
|
@ -22,3 +22,5 @@ array100.frag
|
|||
comment.frag
|
||||
300.vert
|
||||
300.frag
|
||||
330.frag
|
||||
330comp.frag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue