We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d6d10 commit 86ee602Copy full SHA for 86ee602
src/main/kotlin/uno/glfw/glfw.kt
@@ -14,6 +14,7 @@ import org.lwjgl.system.MemoryUtil.*
14
import org.lwjgl.system.Platform
15
import org.lwjgl.vulkan.VkInstance
16
import uno.glfw.windowHint.Profile
17
+import uno.kotlin.parseInt
18
import vkk.VK_CHECK_RESULT
19
import vkk.VkSurfaceKHR
20
import vkk.adr
@@ -38,7 +39,7 @@ object glfw {
38
39
init(installDefaultErrorCallback)
40
windowHint {
41
context.version = version
- val v = version[0].i * 10 + version[1].i
42
+ val v = version[0].parseInt() * 10 + version[1].parseInt()
43
if(v >= 32) // The concept of a core profile does not exist prior to OpenGL 3.2
44
windowHint.profile = profile
45
}
0 commit comments