glsl works differently on my macbook?

This commit is contained in:
minjaesong
2019-01-22 22:23:30 +09:00
parent ac9547c720
commit a28e325f45
2 changed files with 8 additions and 8 deletions

View File

@@ -675,7 +675,7 @@ public class AppLoader implements ApplicationListener {
public static ShaderProgram loadShader(String vert, String frag) {
ShaderProgram s = new ShaderProgram(Gdx.files.internal(vert), Gdx.files.internal(frag));
if (s.getLog().contains("error C")) {
if (s.getLog().toLowerCase().contains("error")) {
throw new Error(String.format("Shader program loaded with %s, %s failed:\n%s", vert, frag, s.getLog()));
}