kool-engine / kool

An OpenGL / WebGPU engine for Desktop JVM, Android and Javascript written in Kotlin
https://fabmax.github.io/kool/kool-js
Apache License 2.0
310 stars 20 forks source link

Older Mac, GLView says I have 4.1, but hello world says I have 2.1? #28

Closed salamanders closed 1 year ago

salamanders commented 1 year ago

Exception in thread "main" de.fabmax.kool.KoolException: Minimum required OpenGL version is 3.3 but system version is 2.1

Which is strange, because GLView says I have 4.1.

fabmax commented 1 year ago

The OpenGL version is directly parsed from the corresponding OpenGL API call (here). If that resolves to 2.1 it is either parsed wrong or something else is odd.

You can try to comment / remove the exception and see what happens. However, OpenGL support on Mac OS is deprecated for quite a while so 2.1 might actually be the correct value.

salamanders commented 1 year ago

Yikes, well, sounds like WAI. Thank you for checking!