From b2802021acf8aa9b363ebef383c8dc8c8079ffa4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 17 May 2013 07:55:59 +0200 Subject: Fix Bug 711: Align Graphs's Curve Shader programmatically to used GL/GLSL version, following all other internal GLSL usage utilizing ShaderCode. --- src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl') diff --git a/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl b/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl index 108247c9c..ced118c1c 100644 --- a/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl +++ b/src/jogl/classes/jogamp/graph/curve/opengl/shader/attributes.glsl @@ -2,6 +2,10 @@ #ifndef attributes_glsl #define attributes_glsl +#if __VERSION__ >= 130 + #define attribute in +#endif + // attribute vec3 gca_Vertices; attribute vec4 gca_Vertices; attribute vec2 gca_TexCoords; -- cgit v1.2.3