* Put the shader compile log on the next line so its slightly more readable

experimental
shadowislord 11 years ago
parent bd500608dd
commit 65094e9ca1
  1. 8
      jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java
  2. 8
      jme3-ios/src/main/java/com/jme3/renderer/ios/IGLESShaderRenderer.java
  3. 6
      jme3-jogl/src/main/java/com/jme3/renderer/jogl/JoglRenderer.java
  4. 8
      jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglRenderer.java

@ -892,9 +892,9 @@ public class OGLESShaderRenderer implements Renderer {
logger.log(Level.WARNING, "Bad compile of:\n{0}",
new Object[]{ShaderDebug.formatShaderSource(source.getDefines(), source.getSource(),stringBuf.toString())});
if (infoLog != null) {
throw new RendererException("compile error in:" + source + " error:" + infoLog);
throw new RendererException("compile error in: " + source + "\n" + infoLog);
} else {
throw new RendererException("compile error in:" + source + " error: <not provided>");
throw new RendererException("compile error in: " + source + "\nerror: <not provided>");
}
}
}
@ -963,9 +963,9 @@ public class OGLESShaderRenderer implements Renderer {
}
} else {
if (infoLog != null) {
throw new RendererException("Shader link failure, shader:" + shader + " info:" + infoLog);
throw new RendererException("Shader link failure, shader: " + shader + "\n" + infoLog);
} else {
throw new RendererException("Shader link failure, shader:" + shader + " info: <not provided>");
throw new RendererException("Shader link failure, shader: " + shader + "\ninfo: <not provided>");
}
}
}

@ -1504,9 +1504,9 @@ public class IGLESShaderRenderer implements Renderer {
}
} else {
if (infoLog != null) {
throw new RendererException("Shader link failure, shader:" + shader + " info:" + infoLog);
throw new RendererException("Shader link failure, shader:" + shader + "\n" + infoLog);
} else {
throw new RendererException("Shader link failure, shader:" + shader + " info: <not provided>");
throw new RendererException("Shader link failure, shader:" + shader + "\ninfo: <not provided>");
}
}
}
@ -2529,9 +2529,9 @@ public class IGLESShaderRenderer implements Renderer {
logger.log(Level.WARNING, "Bad compile of:\n{0}",
new Object[]{ShaderDebug.formatShaderSource(source.getDefines(), source.getSource(),stringBuf.toString())});
if (infoLog != null) {
throw new RendererException("compile error in:" + source + " error:" + infoLog);
throw new RendererException("compile error in: " + source + "\n" + infoLog);
} else {
throw new RendererException("compile error in:" + source + " error: <not provided>");
throw new RendererException("compile error in: " + source + "\nerror: <not provided>");
}
}
}

@ -1089,9 +1089,9 @@ public class JoglRenderer implements Renderer {
logger.log(Level.WARNING, "Bad compile of:\n{0}",
new Object[]{ShaderDebug.formatShaderSource(source.getDefines(), source.getSource(), stringBuf.toString())});
if (infoLog != null) {
throw new RendererException("compile error in:" + source + " error:" + infoLog);
throw new RendererException("compile error in: " + source + "\n" + infoLog);
} else {
throw new RendererException("compile error in:" + source + " error: <not provided>");
throw new RendererException("compile error in: " + source + "\nerror: <not provided>");
}
}
}
@ -1167,7 +1167,7 @@ public class JoglRenderer implements Renderer {
}
} else {
if (infoLog != null) {
throw new RendererException("Shader link failure, shader:" + shader + " info:" + infoLog);
throw new RendererException("Shader link failure, shader:" + shader + "\n" + infoLog);
} else {
throw new RendererException("Shader link failure, shader:" + shader + " info: <not provided>");
}

@ -1040,9 +1040,9 @@ public class LwjglRenderer implements Renderer {
logger.log(Level.WARNING, "Bad compile of:\n{0}",
new Object[]{ShaderDebug.formatShaderSource(source.getDefines(), source.getSource(), stringBuf.toString())});
if (infoLog != null) {
throw new RendererException("compile error in:" + source + " error:" + infoLog);
throw new RendererException("compile error in: " + source + "\n" + infoLog);
} else {
throw new RendererException("compile error in:" + source + " error: <not provided>");
throw new RendererException("compile error in: " + source + "\nerror: <not provided>");
}
}
}
@ -1117,9 +1117,9 @@ public class LwjglRenderer implements Renderer {
}
} else {
if (infoLog != null) {
throw new RendererException("Shader failure to link, shader:" + shader + " info:" + infoLog);
throw new RendererException("Shader failed to link, shader:" + shader + "\n" + infoLog);
} else {
throw new RendererException("Shader failure to link, shader:" + shader + " info: <not provided>");
throw new RendererException("Shader failed to link, shader:" + shader + "\ninfo: <not provided>");
}
}
}

Loading…
Cancel
Save