modification date now writes successfully

This commit is contained in:
minjaesong
2022-01-12 16:38:43 +09:00
parent b0cf37250f
commit 0a5b9c1f2f
4 changed files with 8 additions and 8 deletions

View File

@@ -7,8 +7,7 @@ import org.lwjgl.opengl.GL11
class TerrarumGLinfo {
private var _initialised = false
// some JVMs don't have this property, but they probably don't have "sun.misc.Unsafe" either, so it's no big issue \_(ツ)_/
val MINIMAL_GL_VERSION = 320
val MINIMAL_GL_VERSION = 430
var GL_VERSION = -1; private set
get() = if (_initialised) field else throw UninitializedPropertyAccessException()
@@ -31,7 +30,7 @@ class TerrarumGLinfo {
if (GL_VERSION < MINIMAL_GL_VERSION) {
// TODO notify properly
throw GdxRuntimeException("Graphics device not capable -- device's GL_VERSION: $GL_VERSION, required: $MINIMAL_GL_VERSION")
throw GdxRuntimeException("Graphics device not capable -- device's GL_VERSION: $GL_VERSION, required version: $MINIMAL_GL_VERSION")
}
GL_MAX_TEXTURE_SIZE = GL11.glGetInteger(GL11.GL_MAX_TEXTURE_SIZE)