Minor follow-up to #108.

Set minimum OpenGL version for mmsliders to 3.0 (from 3.2) and removed an unused variable.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2015-07-09 11:59:53 -05:00
parent 2be92ecdca
commit 05c7ac0a02
2 changed files with 2 additions and 3 deletions

View File

@ -87,7 +87,7 @@ public abstract class Curve {
Curve.borderColor = borderColor;
ContextCapabilities capabilities = GLContext.getCapabilities();
mmsliderSupported = capabilities.GL_EXT_framebuffer_object && capabilities.OpenGL32;
mmsliderSupported = capabilities.GL_EXT_framebuffer_object && capabilities.OpenGL30;
if (mmsliderSupported)
CurveRenderState.init(width, height, circleSize);
else {

View File

@ -93,7 +93,6 @@ public class Rendertarget {
public static Rendertarget createRTTFramebuffer(int width, int height) {
int old_framebuffer = GL11.glGetInteger(EXTFramebufferObject.GL_FRAMEBUFFER_BINDING_EXT);
int old_texture = GL11.glGetInteger(GL11.GL_TEXTURE_BINDING_2D);
int old_drawbuffer = GL11.glGetInteger(GL11.GL_DRAW_BUFFER);
Rendertarget buffer = new Rendertarget(width,height);
buffer.bind();
@ -111,7 +110,7 @@ public class Rendertarget {
GL11.glBindTexture(GL11.GL_TEXTURE_2D, old_texture);
EXTFramebufferObject.glBindFramebufferEXT(EXTFramebufferObject.GL_FRAMEBUFFER_EXT, old_framebuffer);
return buffer;
}