We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44387f1 commit 9782271Copy full SHA for 9782271
1 file changed
core/src/processing/opengl/PGraphicsOpenGL.java
@@ -1461,11 +1461,6 @@ protected boolean pointBuffersContextIsOutdated() {
1461
1462
@Override
1463
public void beginDraw() {
1464
- if (!pgl.threadIsCurrent()) {
1465
- PGraphics.showWarning(GL_THREAD_NOT_CURRENT);
1466
- return;
1467
- }
1468
-
1469
if (primaryGraphics) {
1470
if (!initialized) {
1471
initPrimary();
@@ -1476,6 +1471,11 @@ public void beginDraw() {
1476
getPrimaryPG().setCurrentPG(this);
1477
1472
}
1478
1473
1474
+ if (!pgl.threadIsCurrent()) {
1475
+ PGraphics.showWarning(GL_THREAD_NOT_CURRENT);
+ return;
+ }
+
1479
// This has to go after the surface initialization, otherwise offscreen
1480
// surfaces will have a null gl object.
1481
report("top beginDraw()");
0 commit comments