Skip to content

Commit 50d6d10

Browse files
committed
disable context profile for < GL 3.2
1 parent 8033a41 commit 50d6d10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ object glfw {
3838
init(installDefaultErrorCallback)
3939
windowHint {
4040
context.version = version
41-
windowHint.profile = profile
41+
val v = version[0].i * 10 + version[1].i
42+
if(v >= 32) // The concept of a core profile does not exist prior to OpenGL 3.2
43+
windowHint.profile = profile
4244
}
4345
}
4446

0 commit comments

Comments
 (0)