Skip to content

Commit

Permalink
More logging for shader output.
Browse files Browse the repository at this point in the history
  • Loading branch information
grondag committed Jun 18, 2020
1 parent 91ac511 commit 6496748
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/grondag/canvas/shader/GlShader.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,15 @@ private void outputDebugSource(String source, String error) {

if (!shaderDir.exists()) {
shaderDir.mkdir();
CanvasMod.LOG.info("Created shader debug output folder" + shaderDir.toString());
}

if(error != null) {
shaderDir = new File(gameDir.getAbsolutePath().replace(".", "canvas_shader_debug/failed"));

if (!shaderDir.exists()) {
shaderDir.mkdir();
CanvasMod.LOG.info("Created shader debug output failure folder" + shaderDir.toString());
}

source += "\n\n///////// ERROR ////////\n" + error + "\n////////////////////////\n";
Expand Down

0 comments on commit 6496748

Please sign in to comment.