aboutsummaryrefslogtreecommitdiffstats
path: root/src/test-native/bug1398/shader/RedSquareShader2.fp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test-native/bug1398/shader/RedSquareShader2.fp')
-rw-r--r--src/test-native/bug1398/shader/RedSquareShader2.fp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test-native/bug1398/shader/RedSquareShader2.fp b/src/test-native/bug1398/shader/RedSquareShader2.fp
new file mode 100644
index 000000000..25a2df2d7
--- /dev/null
+++ b/src/test-native/bug1398/shader/RedSquareShader2.fp
@@ -0,0 +1,16 @@
+// Copyright 2010 JogAmp Community. All rights reserved.
+
+#if __VERSION__ >= 130
+ #define varying in
+ out vec4 mgl_FragColor;
+#else
+ #define mgl_FragColor gl_FragColor
+#endif
+
+varying vec4 frontColor;
+
+void main (void)
+{
+ mgl_FragColor = vec4(0.0, frontColor.g, frontColor.b, 1.0);
+}
+