protected void popFramebuffer() { if (!popFramebufferEnabled) return; try { currentFBO = fboStack.pop(); currentFBO.bind(); } catch (EmptyStackException e) { System.out.println("Empty framebuffer stack"); } }
protected void setFramebuffer(GLFramebufferObject fbo) { if (framebufferFixed) return; currentFBO = fbo; currentFBO.bind(); }