validate framebuffer only at init in android, new offscreen implementation that properly solves the fickering problem (commented out for now to finish later), some todo notes

This commit is contained in:
codeanticode
2012-09-03 13:48:34 +00:00
parent 72573da4d7
commit 4bf7bc727b
4 changed files with 85 additions and 7 deletions
+1 -2
View File
@@ -980,8 +980,7 @@ public class PGL {
GL.GL_TEXTURE_2D,
glColorTex[frontTex], 0);
// TODO: check if the screen FBO should be left bound instead
PGraphicsOpenGL.screenFramebuffer.glFbo = glColorFbo[0];
// Swapping front and back textures.
@@ -1747,6 +1747,7 @@ public class PGraphicsOpenGL extends PGraphics {
pgl.endOnscreenDraw(clearColorBuffer0);
if (!pgl.initialized || parent.frameCount == 0) {
// TODO: check this code and see if should go before endOnscreenDraw
// Smooth was called at some point during drawing. We save
// the current contents of the back buffer (because the
// buffers haven't been swapped yet) to the pixels array.