some code cleanup of the recent changes

This commit is contained in:
codeanticode
2013-06-02 11:18:10 -04:00
parent 362def018e
commit 1bb36b1db1
2 changed files with 25 additions and 68 deletions

View File

@@ -5149,7 +5149,6 @@ public class PGraphicsOpenGL extends PGraphics {
protected void restoreSurfaceFromPixels() {
System.out.println("restoreSurfaceFromPixels");
drawPixels(0, 0, width, height);
}
@@ -5953,19 +5952,6 @@ public class PGraphicsOpenGL extends PGraphics {
if (pgl.isFBOBacked()) {
texture = pgl.wrapBackTexture(texture);
ptexture = pgl.wrapFrontTexture(ptexture);
/*
if (texture == null || pgl.backTextureChanged()) {
texture = pgl.wrapBackTexture();
} else {
texture.glName = pgl.getBackTextureName();
}
if (ptexture == null || pgl.frontTextureChanged()) {
ptexture = pgl.wrapFrontTexture();
} else {
ptexture.glName = pgl.getFrontTextureName();
}
*/
}
}