GLSL errors

BlitzMax Forums/BlitzMax OpenGL Programming/GLSL errors

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am using shader code based on this:
http://blitzmax.com/Community/posts.php?topic=53895#602026

When I compile, I get these errors in the debug log:
Compiled: FragmentShader.glsl successfuly in 111ms

Compiled: FragmentShader.glsl successfuly in 8ms


Failed to link VertexShader FragmentShader.glsl

Vertex info
-----------
<stdlib>(9793) : error C5052: gl_FragColor is not accessible in this profile
  101

Failed to link FragShader 'FragmentShader.glsl'

Vertex info
-----------
(4) : warning C7050: "vNormal.xy" might be used before being initialized
(3) : warning C7050: "vPosition" might be used before being initialized
(0) : error C6014: Required output 'HPOS' not written

Error getting Uniform Var Location 'color' in Method setUF4

Process complete


I can run the original example without a problem.

Any ideas?