Merge pull request #554 from TehLeo/patch-2

Fix for MTR Framebuffers
cleanup_build_scripts
Kirill Vainer 8 years ago
parent bbad454e43
commit 2440fc5a74
  1. 3
      jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

@ -1672,7 +1672,6 @@ public final class GLRenderer implements Renderer {
+ " by the video hardware!");
}
if (context.boundDrawBuf != MRT_OFF + fb.getNumColorBuffers()) {
intBuf16.clear();
for (int i = 0; i < fb.getNumColorBuffers(); i++) {
intBuf16.put(GLFbo.GL_COLOR_ATTACHMENT0_EXT + i);
@ -1681,7 +1680,7 @@ public final class GLRenderer implements Renderer {
intBuf16.flip();
glext.glDrawBuffers(intBuf16);
context.boundDrawBuf = MRT_OFF + fb.getNumColorBuffers();
}
} else {
RenderBuffer rb = fb.getColorBuffer(fb.getTargetIndex());
// select this draw buffer

Loading…
Cancel
Save