added flush() call in copy(PImage, ...)

This commit is contained in:
codeanticode
2013-09-04 07:02:57 -04:00
parent 4392af45f3
commit e4afbd7151
@@ -5614,6 +5614,8 @@ public class PGraphicsOpenGL extends PGraphics {
needEndDraw = true;
}
flush(); // make sure that the screen contents are up to date.
Texture tex = getTexture(src);
pgl.drawTexture(tex.glTarget, tex.glName,
tex.glWidth, tex.glHeight, width, height,