commit
cd59c332ab
|
@ -87,7 +87,7 @@ public abstract class Curve {
|
||||||
Curve.borderColor = borderColor;
|
Curve.borderColor = borderColor;
|
||||||
|
|
||||||
ContextCapabilities capabilities = GLContext.getCapabilities();
|
ContextCapabilities capabilities = GLContext.getCapabilities();
|
||||||
mmsliderSupported = capabilities.GL_EXT_framebuffer_object && capabilities.OpenGL30;
|
mmsliderSupported = capabilities.GL_EXT_framebuffer_object && capabilities.OpenGL33;
|
||||||
if (mmsliderSupported)
|
if (mmsliderSupported)
|
||||||
CurveRenderState.init(width, height, circleSize);
|
CurveRenderState.init(width, height, circleSize);
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -501,7 +501,7 @@ public class MainMenu extends BasicGameState {
|
||||||
else if (repoButton != null && repoButton.contains(x, y)) {
|
else if (repoButton != null && repoButton.contains(x, y)) {
|
||||||
try {
|
try {
|
||||||
Desktop.getDesktop().browse(Options.REPOSITORY_URI);
|
Desktop.getDesktop().browse(Options.REPOSITORY_URI);
|
||||||
} catch (IOException e) {
|
} catch (IOException | UnsupportedOperationException e) {
|
||||||
ErrorHandler.error("Could not browse to repository URI.", e, false);
|
ErrorHandler.error("Could not browse to repository URI.", e, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1233,7 +1233,7 @@ public class Input {
|
||||||
}
|
}
|
||||||
|
|
||||||
while (Mouse.next()) {
|
while (Mouse.next()) {
|
||||||
if (Mouse.getEventButton() >= 0) {
|
if (Mouse.getEventButton() >= 0 && Mouse.getEventButton() < mousePressed.length) {
|
||||||
if (Mouse.getEventButtonState()) {
|
if (Mouse.getEventButtonState()) {
|
||||||
consumed = false;
|
consumed = false;
|
||||||
mousePressed[Mouse.getEventButton()] = true;
|
mousePressed[Mouse.getEventButton()] = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user