Skip to content

Commit 86ee602

Browse files
committed
disable context profile for < GL 3.2 (fixed)
1 parent 50d6d10 commit 86ee602

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/uno/glfw/glfw.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import org.lwjgl.system.MemoryUtil.*
1414
import org.lwjgl.system.Platform
1515
import org.lwjgl.vulkan.VkInstance
1616
import uno.glfw.windowHint.Profile
17+
import uno.kotlin.parseInt
1718
import vkk.VK_CHECK_RESULT
1819
import vkk.VkSurfaceKHR
1920
import vkk.adr
@@ -38,7 +39,7 @@ object glfw {
3839
init(installDefaultErrorCallback)
3940
windowHint {
4041
context.version = version
41-
val v = version[0].i * 10 + version[1].i
42+
val v = version[0].parseInt() * 10 + version[1].parseInt()
4243
if(v >= 32) // The concept of a core profile does not exist prior to OpenGL 3.2
4344
windowHint.profile = profile
4445
}

0 commit comments

Comments
 (0)