Lower GLSL version requirement

I didn't really use any of the newer features anyway.
This should accomodate open source drivers that use older versions of MESA.
This commit is contained in:
Peter Tissen
2015-08-13 10:46:48 +02:00
parent 93615736af
commit f0b87c99ab
2 changed files with 8 additions and 7 deletions

View File

@@ -87,12 +87,12 @@ public abstract class Curve {
Curve.borderColor = borderColor;
ContextCapabilities capabilities = GLContext.getCapabilities();
mmsliderSupported = capabilities.GL_EXT_framebuffer_object && capabilities.OpenGL33;
mmsliderSupported = capabilities.GL_EXT_framebuffer_object && capabilities.OpenGL30;
if (mmsliderSupported)
CurveRenderState.init(width, height, circleSize);
else {
if (Options.getSkin().getSliderStyle() != Skin.STYLE_PEPPYSLIDER)
Log.warn("New slider style requires FBO support and OpenGL 3.2.");
Log.warn("New slider style requires FBO support and OpenGL 3.0.");
}
}