|
|
@ -1563,13 +1563,13 @@ public class GLRenderer implements Renderer { |
|
|
|
updateFrameBuffer(fb); |
|
|
|
updateFrameBuffer(fb); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// update viewport to reflect framebuffer's resolution
|
|
|
|
|
|
|
|
setViewPort(0, 0, fb.getWidth(), fb.getHeight()); |
|
|
|
|
|
|
|
|
|
|
|
if (context.boundFBO != fb.getId()) { |
|
|
|
if (context.boundFBO != fb.getId()) { |
|
|
|
glfbo.glBindFramebufferEXT(GLExt.GL_FRAMEBUFFER_EXT, fb.getId()); |
|
|
|
glfbo.glBindFramebufferEXT(GLExt.GL_FRAMEBUFFER_EXT, fb.getId()); |
|
|
|
statistics.onFrameBufferUse(fb, true); |
|
|
|
statistics.onFrameBufferUse(fb, true); |
|
|
|
|
|
|
|
|
|
|
|
// update viewport to reflect framebuffer's resolution
|
|
|
|
|
|
|
|
setViewPort(0, 0, fb.getWidth(), fb.getHeight()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context.boundFBO = fb.getId(); |
|
|
|
context.boundFBO = fb.getId(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
statistics.onFrameBufferUse(fb, false); |
|
|
|
statistics.onFrameBufferUse(fb, false); |
|
|
|