Fix OpenGL version requirement.

This commit is contained in:
Matteo Signer 2016-12-19 17:42:21 +01:00
parent bae3b711cf
commit 2aa1fd7b4e

View File

@ -95,7 +95,7 @@ public abstract class Curve {
Curve.borderColor = borderColor; Curve.borderColor = borderColor;
ContextCapabilities capabilities = GLContext.getCapabilities(); ContextCapabilities capabilities = GLContext.getCapabilities();
mmsliderSupported = capabilities.OpenGL20; mmsliderSupported = capabilities.OpenGL30;
if (mmsliderSupported) if (mmsliderSupported)
CurveRenderState.init(width, height, circleDiameter); CurveRenderState.init(width, height, circleDiameter);
else { else {