Unconditionally disable POLYGON_SMOOTH in restoreGL()

This now matches the logic in setGLSettings(), as suggested by @JakubValtar.
This commit is contained in:
gohai
2018-04-24 06:33:28 -07:00
committed by Gottfried Haider
parent 3da84a9874
commit d8a2fd8cc7
@@ -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);
}