From 9ca0a4aa089370895c84c7c292b0a373eca6d64a Mon Sep 17 00:00:00 2001 From: codeanticode Date: Thu, 21 Jun 2012 18:13:19 +0000 Subject: [PATCH] re-enabling clearing of alpha channel for offscreen surfaces --- android/core/src/processing/opengl/PGraphicsOpenGL.java | 2 -- .../libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/android/core/src/processing/opengl/PGraphicsOpenGL.java b/android/core/src/processing/opengl/PGraphicsOpenGL.java index df2ec961d..5f39f1bc0 100644 --- a/android/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/android/core/src/processing/opengl/PGraphicsOpenGL.java @@ -1632,7 +1632,6 @@ public class PGraphicsOpenGL extends PGraphics { offscreenFramebufferMultisample.copy(offscreenFramebuffer); } - /* // Make the offscreen color buffer opaque so it doesn't show // the background when drawn on the main surface. if (offscreenMultisample) { @@ -1646,7 +1645,6 @@ public class PGraphicsOpenGL extends PGraphics { if (offscreenMultisample) { popFramebuffer(); } - */ if (!pgl.initialized || !pgPrimary.pgl.initialized || parent.frameCount == 0) { // If the primary surface is re-initialized, this offscreen diff --git a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java index df2ec961d..5f39f1bc0 100644 --- a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java +++ b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java @@ -1632,7 +1632,6 @@ public class PGraphicsOpenGL extends PGraphics { offscreenFramebufferMultisample.copy(offscreenFramebuffer); } - /* // Make the offscreen color buffer opaque so it doesn't show // the background when drawn on the main surface. if (offscreenMultisample) { @@ -1646,7 +1645,6 @@ public class PGraphicsOpenGL extends PGraphics { if (offscreenMultisample) { popFramebuffer(); } - */ if (!pgl.initialized || !pgPrimary.pgl.initialized || parent.frameCount == 0) { // If the primary surface is re-initialized, this offscreen