gl_PointCoord on Mac OS
Hi All,
I've just been having a quick play at porting my game so it runs on the mac - one of my shaders doesn't want to compile.
Shader compile log:
ERROR: 0:1: 'gl_PointCoord' : undeclared identifier
Doing a quick search I can't tell if gl_PointCoord is supported on the mac - I'm not really up to speed on OpenGL on the desktop so fumbling around in the dark a bit.
Cheers
Chris.
I've just been having a quick play at porting my game so it runs on the mac - one of my shaders doesn't want to compile.
Shader compile log:
ERROR: 0:1: 'gl_PointCoord' : undeclared identifier
Doing a quick search I can't tell if gl_PointCoord is supported on the mac - I'm not really up to speed on OpenGL on the desktop so fumbling around in the dark a bit.
Cheers
Chris.
gl_PointCoord was added in GLSL 120. Tried sticking #version 120 at the top of your shader?
Thanks,
That's fixed the compilation errors.
Must have another bug somewhere else now as no point sprites are being drawn.
Will trim it down to a simple test program.
That's fixed the compilation errors.
Must have another bug somewhere else now as no point sprites are being drawn.
Will trim it down to a simple test program.
(Jul 17, 2011 10:00 AM)OneSadCookie Wrote: gl_PointCoord was added in GLSL 120. Tried sticking #version 120 at the top of your shader?

