-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kons-9 is using opengl v4.6 on Linux and opengl v2.1 on macos which are fundamentally incompatible versions #93
Comments
well it shouldn't be hard to limit to 4.1 until something like this is drop in replacement. https://github.com/openglonmetal/MGL |
(glfw:with-init-window (:title "kons-9" :width (first *window-size*)
:height (second *window-size*)
:context-version-major 4 :context-version-minor 1
:opengl-forward-compat t :opengl-profile :opengl-core-profile)
...)
…On Thu, Sep 8, 2022 at 11:17 AM Johannes Martinez Calzada < ***@***.***> wrote:
well it shouldn't be hard to limit to 4.1 until something like this is
drop in replacement. https://github.com/openglonmetal/MGL
—
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABGMMNPDJE2UFRXWSL7VRTV5IGQNANCNFSM6AAAAAAQHLUZJU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Is there a way of getting our existing OpenGL code working with 4.1 on MacOS? If not, what changes are necessary? I tried the above snippet and got:
Found this link: https://stackoverflow.com/questions/48249518/opengl-error-1282-invalid-operation-when-using-glut-3-2-core-profile Tried some other flags, including
|
Looks like Apple does not support deprecated OpenGL past 3.2: https://www.khronos.org/opengl/wiki/Legacy_OpenGL So we will have to rewrite all our graphics code (which we were planning to anyway) to move to 4.1. The question now is what is the best platform to target -- OpenGL 4.1, Vulkan, etc. In the meantime, we'll keep MacOS at 2.1 and use different versions of Andrew's text engine for MacOS and Linux. |
This might be an opportunity to abstract the rendering "backend". Should you spend your time chasing bugs in compatibility hacks or work up front on a flexible architecture that supports either OpenGL or Metal (etc.) directly? Remember you are interacting with a scene graph, which already is an important abstraction towards this approach. SGI's Open Inventor (while at times a little too "conjoined" with OpenGL and X windows) took such an approach. |
No description provided.
The text was updated successfully, but these errors were encountered: