From 5ee8daf0f1df6452cdc6a25b33295aaf8ced2cc0 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Wed, 6 Jul 2011 02:11:14 +0000 Subject: [PATCH] using drawTexture() method --- .../opengl/src/processing/opengl/PGraphicsOpenGL.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java index c12722358..50cb7068e 100644 --- a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java +++ b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java @@ -6185,7 +6185,7 @@ return width * (1 + ox) / 2.0f; setFramebuffer(offscreenFramebuffer); } - drawTexture(texture, texCrop, 0, 0, width, height); + drawTexture(); if (notCurrent) { popFramebuffer(); @@ -6392,8 +6392,7 @@ return width * (1 + ox) / 2.0f; if (notCurrent) { pushFramebuffer(); setFramebuffer(offscreenFramebuffer); - } - + } // The crop region and draw rectangle are given like this to take into account // inverted y-axis in Processin with respect to OpenGL.