gl_PointCoord on Mac OS

Member
Posts: 40
Joined: 2009.05
Post: #1
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.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
gl_PointCoord was added in GLSL 120. Tried sticking #version 120 at the top of your shader?
Quote this message in a reply
Member
Posts: 40
Joined: 2009.05
Post: #3
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.

(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?
Quote this message in a reply
Post Reply