Automatically upload GLSL 1.0 shaders as GLSL 1.1 if using desktop OpenGL to allow stricter error checking.

This commit is contained in:
shadowislord 2014-06-01 14:59:17 -04:00
parent 76147fc5f7
commit 68cb1e900f

View File

@ -986,6 +986,10 @@ public class LwjglRenderer implements Renderer {
stringBuf.append(" core");
}
stringBuf.append("\n");
} else {
// version 100 does not exist in desktop GLSL.
// put version 110 in that case to enable strict checking
stringBuf.append("#version 110\n");
}
}
updateNameBuffer();