put report() back in its original position, explain why

This commit is contained in:
codeanticode
2015-08-13 14:07:16 -04:00
parent 6acb09c385
commit 70439a6a63
@@ -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;
}