mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
added flush() call in copy(PImage, ...)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user