protected void popDestTextures() { try { currentDestTex = destTexStack.pop(); currentFBO.setDrawBuffers(currentDestTex); } catch (EmptyStackException e) { System.out.println("Empty texture stack"); } }
protected void popFramebuffer() { if (!popFramebufferEnabled) return; try { currentFBO = fboStack.pop(); currentFBO.bind(); } catch (EmptyStackException e) { System.out.println("Empty framebuffer stack"); } }