kbranigan / Simple-OpenGL-Image-Library

Simple image uploader primarily for OpenGL
http://lonesock.net/soil.html
244 stars 105 forks source link

Fixed build issue when GL_ES_VERSION_2_0 is defined #9

Closed njcrawford closed 8 years ago

njcrawford commented 9 years ago

It appears that I introduced this issue in 4fd65af914ac33ebf39fa25278733a936a14d50d, but I'm pretty sure it built ok at the time... I must have done something wrong during the build test or merge.

At any rate, the #ifdef has to be inside the if(), otherwise it throws a syntax error. Also, false is not defined in plain C, so I replaced it with 0.

andystanton commented 8 years ago

@njcrawford @kbranigan I've addressed this issue in #10 as well as some others for IOS compatibility. I've built for OSX, IOS and Ubuntu but don't have access to a Windows machine.