mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
put report() back in its original position, explain why
This commit is contained in:
@@ -1999,8 +1999,6 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
@Override
|
||||
public void beginDraw() {
|
||||
report("top beginDraw()");
|
||||
|
||||
if (primaryGraphics) {
|
||||
if (!initialized) {
|
||||
initPrimary();
|
||||
@@ -2011,6 +2009,10 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
getPrimaryPG().setCurrentPG(this);
|
||||
}
|
||||
|
||||
// This has to go after the surface initialization, otherwise offscreen
|
||||
// surfaces will have a null gl object.
|
||||
report("top beginDraw()");
|
||||
|
||||
if (!checkGLThread()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user