Skip to content

Commit 5518417

Browse files
committed
Unconditionally disable POLYGON_SMOOTH in restoreGL()
This now matches the logic in setGLSettings(), as suggested by @JakubValtar.
1 parent dc11272 commit 5518417

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,8 @@ protected void restoreGL() {
15671567
pgl.disable(PGL.MULTISAMPLE);
15681568
} else if (1 <= smooth) {
15691569
pgl.enable(PGL.MULTISAMPLE);
1570+
}
1571+
if (!pgl.isES()) {
15701572
pgl.disable(PGL.POLYGON_SMOOTH);
15711573
}
15721574

0 commit comments

Comments
 (0)