Program: 709
Project: 709
Buggy source:
@Override public void applyParameters(Material program){
  super.applyParameters(program);
  Config config=CoreRegistry.get(Config.class);
  int texId=0;
  FrameBuffersManager buffersManager=CoreRegistry.get(FrameBuffersManager.class);
switch (config.getRendering().getDebug().getStage()) {
case SHADOW_MAP:
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
  buffersManager.bindFboDepthTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_COLOR:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_NORMALS:
case OPAQUE_SUNLIGHT:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboNormalsTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_DEPTH:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboDepthTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_LIGHT_BUFFER:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboLightBufferTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case TRANSPARENT_COLOR:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case SSAO:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case SOBEL:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case BAKED_OCCLUSION:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case RECONSTRUCTED_POSITION:
Camera activeCamera=CoreRegistry.get(WorldRenderer.class).getActiveCamera();
if (activeCamera != null) {
program.setMatrix4("String_Node_Str",activeCamera.getInverseProjectionMatrix(),true);
}
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboDepthTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case BLOOM:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case HIGH_PASS:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case SKY_BAND:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case LIGHT_SHAFTS:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
default :
break;
}
program.setInt("String_Node_Str",CoreRegistry.get(Config.class).getRendering().getDebug().getStage().getIndex());
}

Fixed version (ground truth):
@Override public void applyParameters(Material program){
  super.applyParameters(program);
  Config config=CoreRegistry.get(Config.class);
  int texId=0;
  FrameBuffersManager buffersManager=CoreRegistry.get(FrameBuffersManager.class);
switch (config.getRendering().getDebug().getStage()) {
case SHADOW_MAP:
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
  buffersManager.bindFboDepthTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_COLOR:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_NORMALS:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboNormalsTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_DEPTH:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboDepthTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case OPAQUE_SUNLIGHT:
case OPAQUE_LIGHT_BUFFER:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboLightBufferTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case TRANSPARENT_COLOR:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case SSAO:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case SOBEL:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case BAKED_OCCLUSION:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case RECONSTRUCTED_POSITION:
Camera activeCamera=CoreRegistry.get(WorldRenderer.class).getActiveCamera();
if (activeCamera != null) {
program.setMatrix4("String_Node_Str",activeCamera.getInverseProjectionMatrix(),true);
}
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboDepthTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case BLOOM:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case HIGH_PASS:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case SKY_BAND:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
case LIGHT_SHAFTS:
GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
buffersManager.bindFboColorTexture("String_Node_Str");
program.setInt("String_Node_Str",texId++,true);
break;
default :
break;
}
program.setInt("String_Node_Str",CoreRegistry.get(Config.class).getRendering().getDebug().getStage().getIndex());
}