Update libGDX to 1.12.1
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
[0.1.4]
|
||||
- Update libGDX to 1.12.1
|
||||
- Update VisUI to 1.5.3
|
||||
|
||||
[0.1.3]
|
||||
- Update libGDX to 1.12.0
|
||||
- Update gradle to 7.6
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
gdxVersion = 1.12.0
|
||||
lwjgl3Version = 3.3.2
|
||||
gdxVersion = 1.12.1
|
||||
lwjgl3Version = 3.3.3
|
||||
artemisVersion = 2.3.0
|
||||
spineVersion = 4.1.0
|
||||
visuiVersion = 1.5.2
|
||||
visuiVersion = 1.5.3
|
||||
typingLabelVersion = 1.3.0
|
||||
shapedrawerVersion = 2.5.0
|
||||
talosVersion = 1.4.0
|
||||
|
||||
Submodule hyperlap2d-runtime-libgdx updated: fbb072db1f...cd76f14196
@@ -5,8 +5,6 @@ import org.lwjgl.system.Callback;
|
||||
|
||||
import java.io.PrintStream;
|
||||
|
||||
import static org.lwjgl.opengl.GL11C.glEnable;
|
||||
import static org.lwjgl.opengl.GL11C.glGetInteger;
|
||||
import static org.lwjgl.opengl.GL30C.GL_CONTEXT_FLAGS;
|
||||
import static org.lwjgl.opengl.GL43C.*;
|
||||
import static org.lwjgl.opengl.GL43C.GL_DEBUG_SOURCE_OTHER;
|
||||
@@ -46,9 +44,9 @@ public class GLESUtil {
|
||||
printDetail(stream, "Message", GLDebugMessageCallback.getMessage(length, message));
|
||||
});
|
||||
GLES32.glDebugMessageCallback(proc, NULL);
|
||||
if ((glGetInteger(GL_CONTEXT_FLAGS) & GL_CONTEXT_FLAG_DEBUG_BIT) == 0) {
|
||||
if ((GLES32.glGetInteger(GL_CONTEXT_FLAGS) & GL_CONTEXT_FLAG_DEBUG_BIT) == 0) {
|
||||
apiLog("[GLES] Warning: A non-debug context may not produce any debug output.");
|
||||
glEnable(GL_DEBUG_OUTPUT);
|
||||
GLES32.glEnable(GL_DEBUG_OUTPUT);
|
||||
}
|
||||
return proc;
|
||||
}
|
||||
|
||||
@@ -464,9 +464,9 @@ public class Lwjgl3ApplicationGLESFix implements Lwjgl3ApplicationBase {
|
||||
window.setVisible(config.initialVisible);
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
GL11.glClearColor(config.initialBackgroundColor.r, config.initialBackgroundColor.g, config.initialBackgroundColor.b,
|
||||
window.getGraphics().gl20.glClearColor(config.initialBackgroundColor.r, config.initialBackgroundColor.g, config.initialBackgroundColor.b,
|
||||
config.initialBackgroundColor.a);
|
||||
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
|
||||
window.getGraphics().gl20.glClear(GL11.GL_COLOR_BUFFER_BIT);
|
||||
GLFW.glfwSwapBuffers(windowHandle);
|
||||
}
|
||||
}
|
||||
@@ -587,13 +587,14 @@ public class Lwjgl3ApplicationGLESFix implements Lwjgl3ApplicationBase {
|
||||
}
|
||||
|
||||
initiateGL(config.glEmulation == Lwjgl3ApplicationConfiguration.GLEmulation.ANGLE_GLES20);
|
||||
//TODO fix glVersion.getVendorString() to glVersion.getVersionString() in 1.12.2
|
||||
if (!glVersion.isVersionEqualToOrHigher(2, 0))
|
||||
throw new GdxRuntimeException("OpenGL 2.0 or higher with the FBO extension is required. OpenGL version: "
|
||||
+ GL11.glGetString(GL11.GL_VERSION) + "\n" + glVersion.getDebugVersionString());
|
||||
+ glVersion.getVendorString() + "\n" + glVersion.getDebugVersionString());
|
||||
|
||||
if (config.glEmulation != Lwjgl3ApplicationConfiguration.GLEmulation.ANGLE_GLES20 && !supportsFBO()) {
|
||||
throw new GdxRuntimeException("OpenGL 2.0 or higher with the FBO extension is required. OpenGL version: "
|
||||
+ GL11.glGetString(GL11.GL_VERSION) + ", FBO extension: false\n" + glVersion.getDebugVersionString());
|
||||
+ glVersion.getVendorString() + ", FBO extension: false\n" + glVersion.getDebugVersionString());
|
||||
}
|
||||
|
||||
if (config.debug) {
|
||||
|
||||
Reference in New Issue
Block a user