From 385d22c3162cb584439026256ff26eebc388738e Mon Sep 17 00:00:00 2001 From: benfry Date: Wed, 21 Dec 2005 17:02:26 +0000 Subject: [PATCH] support for resizing the canvas --- opengl/PGraphicsGL.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opengl/PGraphicsGL.java b/opengl/PGraphicsGL.java index 85061c441..04784be54 100644 --- a/opengl/PGraphicsGL.java +++ b/opengl/PGraphicsGL.java @@ -249,7 +249,8 @@ public class PGraphicsGL extends PGraphics3 { * because OpenGL's pixel buffer is all handled internally. */ protected void allocate() { - // nothing to do here + // changing for 0100, need to resize rather than return-allocate + canvas.setSize(width, height); }