skip smooth setting if the platform doesn't have at least a MAX_SAMPLES

constant
This commit is contained in:
codeanticode
2014-08-06 15:46:48 -04:00
parent 42485d6e46
commit efc1fb9592
@@ -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;