gl_PointCoord on Mac OS - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: gl_PointCoord on Mac OS (/thread-9181.html)
gl_PointCoord on Mac OS - iamflimflam1 - Jul 17, 2011 05:01 AM
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.
RE: gl_PointCoord on Mac OS - OneSadCookie - Jul 17, 2011 10:00 AM
gl_PointCoord was added in GLSL 120. Tried sticking #version 120 at the top of your shader?
RE: gl_PointCoord on Mac OS - iamflimflam1 - Jul 18, 2011 11:56 PM
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?