mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
skip smooth setting if the platform doesn't have at least a MAX_SAMPLES
constant
This commit is contained in:
@@ -3376,7 +3376,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
|
||||
@Override
|
||||
public void smooth(int level) {
|
||||
if (smoothDisabled) return;
|
||||
if (smoothDisabled || PGL.MAX_SAMPLES == -1) return;
|
||||
|
||||
smooth = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user