mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Unconditionally disable POLYGON_SMOOTH in restoreGL()
This now matches the logic in setGLSettings(), as suggested by @JakubValtar.
This commit is contained in:
@@ -1567,6 +1567,8 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
pgl.disable(PGL.MULTISAMPLE);
|
||||
} else if (1 <= smooth) {
|
||||
pgl.enable(PGL.MULTISAMPLE);
|
||||
}
|
||||
if (!pgl.isES()) {
|
||||
pgl.disable(PGL.POLYGON_SMOOTH);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user