Skip to content

Commit 52c9ce6

Browse files
committed
fixed restart condition
1 parent 291f35e commit 52c9ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/opengl/PJOGL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ protected void initSurface(int antialias) {
278278
}
279279
}
280280

281-
if (canvasAWT != null && canvasNEWT != null) {
281+
if (canvasAWT != null || canvasNEWT != null) {
282282
// Restarting...
283283
if (canvasAWT != null) {
284284
sharedCanvasAWT = null;

0 commit comments

Comments
 (0)