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:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user