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:
parent
2be92ecdca
commit
05c7ac0a02
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user