mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 11:54:59 -04:00
mac: use glfw_async #29
This commit is contained in:
parent
5db30cd04b
commit
9f16b51414
@ -40,6 +40,7 @@ import org.lwjgl.glfw.Callbacks.glfwFreeCallbacks
|
||||
import org.lwjgl.glfw.GLFW.*
|
||||
import org.lwjgl.glfw.GLFWErrorCallback
|
||||
import org.lwjgl.glfw.GLFWImage
|
||||
import org.lwjgl.system.Configuration
|
||||
import org.lwjgl.system.MemoryUtil
|
||||
import java.nio.ByteBuffer
|
||||
|
||||
@ -358,6 +359,9 @@ class GLFWWindow(
|
||||
private val initLatch = CountUpAndDownLatch(1)
|
||||
|
||||
init {
|
||||
if (PlatformInfo.OS == OSTypes.MAC) {
|
||||
Configuration.GLFW_LIBRARY_NAME.set("glfw_async")
|
||||
}
|
||||
DefaultThreadPool += {
|
||||
GLFWErrorCallback.createPrint(System.err).set()
|
||||
check(glfwInit()) { "Unable to initialize GLFW" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user