fixed compilation issues in deprecated OGLESShaderRenderer, IGLESShaderRenderer, and JoglRenderer caused by earlier commit

experimental
iwgeric 10 years ago
parent f9d8a88bba
commit 4baceb6a08
  1. 2
      jme3-android/src/main/java/com/jme3/renderer/android/OGLESShaderRenderer.java
  2. 2
      jme3-ios/src/main/java/com/jme3/renderer/ios/IGLESShaderRenderer.java
  3. 2
      jme3-jogl/src/main/java/com/jme3/renderer/jogl/JoglRenderer.java

@ -910,7 +910,7 @@ public class OGLESShaderRenderer implements Renderer {
source.clearUpdateNeeded(); source.clearUpdateNeeded();
} else { } else {
logger.log(Level.WARNING, "Bad compile of:\n{0}", logger.log(Level.WARNING, "Bad compile of:\n{0}",
new Object[]{ShaderDebug.formatShaderSource(source.getDefines(), source.getSource(),stringBuf.toString())}); new Object[]{ShaderDebug.formatShaderSource(stringBuf.toString() + source.getDefines() + source.getSource())});
if (infoLog != null) { if (infoLog != null) {
throw new RendererException("compile error in: " + source + "\n" + infoLog); throw new RendererException("compile error in: " + source + "\n" + infoLog);
} else { } else {

@ -2540,7 +2540,7 @@ public class IGLESShaderRenderer implements Renderer {
source.clearUpdateNeeded(); source.clearUpdateNeeded();
} else { } else {
logger.log(Level.WARNING, "Bad compile of:\n{0}", logger.log(Level.WARNING, "Bad compile of:\n{0}",
new Object[]{ShaderDebug.formatShaderSource(source.getDefines(), source.getSource(),stringBuf.toString())}); new Object[]{ShaderDebug.formatShaderSource(stringBuf.toString() + source.getDefines() + source.getSource())});
if (infoLog != null) { if (infoLog != null) {
throw new RendererException("compile error in: " + source + "\n" + infoLog); throw new RendererException("compile error in: " + source + "\n" + infoLog);
} else { } else {

@ -1091,7 +1091,7 @@ public class JoglRenderer implements Renderer {
source.clearUpdateNeeded(); source.clearUpdateNeeded();
} else { } else {
logger.log(Level.WARNING, "Bad compile of:\n{0}", logger.log(Level.WARNING, "Bad compile of:\n{0}",
new Object[]{ShaderDebug.formatShaderSource(source.getDefines(), source.getSource(), stringBuf.toString())}); new Object[]{ShaderDebug.formatShaderSource(stringBuf.toString() + source.getDefines() + source.getSource())});
if (infoLog != null) { if (infoLog != null) {
throw new RendererException("compile error in: " + source + "\n" + infoLog); throw new RendererException("compile error in: " + source + "\n" + infoLog);
} else { } else {

Loading…
Cancel
Save