Use lower shader version for better compatibility on OS X

We just need the basic features for getting a texture on screen, so
GLSL version 1.5 is enough.
This commit is contained in:
Frederik De Bleser 2016-04-19 13:06:54 +02:00
parent 5b0b4c9ffd
commit 26fc35ac94

View File

@ -31,7 +31,7 @@ static struct nk_glfw {
} glfw;
#ifdef __APPLE__
#define NK_SHADER_VERSION "#version 400\n"
#define NK_SHADER_VERSION "#version 150\n"
#else
#define NK_SHADER_VERSION "#version 300 es\n"
#endif