mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
glFlush() before endOnscreenDraw() call
This commit is contained in:
@@ -1502,12 +1502,8 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
pgl.glViewport(savedViewport[0], savedViewport[1], savedViewport[2], savedViewport[3]);
|
||||
|
||||
if (primarySurface) {
|
||||
// glFlush should be called only once, since it is an expensive
|
||||
// operation. Thus, only the main renderer (the primary surface)
|
||||
// should call it at the end of draw, and none of the offscreen
|
||||
// renderers...
|
||||
pgl.glFlush();
|
||||
pgl.endOnscreenDraw(clearColorBuffer0);
|
||||
pgl.glFlush();
|
||||
pgl.releaseContext();
|
||||
} else {
|
||||
if (offscreenMultisample) {
|
||||
|
||||
Reference in New Issue
Block a user