Skip to content
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

GL2 -> profileImpl GL3bc !!! not mapped #31

Open
jzy3d opened this issue Dec 21, 2022 · 1 comment
Open

GL2 -> profileImpl GL3bc !!! not mapped #31

jzy3d opened this issue Dec 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jzy3d
Copy link
Owner

jzy3d commented Dec 21, 2022

Somehow JOGL can't map an implementation to the OpenGL version it does detect. Looking for GL3bc means JOGL assume your hadware supports OpenGL 3 and is in backward compatible mode.

Debugging

  • Run glxinfo command on the terminal to check which OpenGL version your hardware claim.
  • Call GLProfile.getMaximum(true) instead of GLProfile.getDefault() OR GLProfile.get("your OpenGL version") (which is definetely not portable but at least help understanding your situation).
  • There is an option to avoid entering the backward compatible mode which is : -Djogl.disable.openglcore=true this partially resolved the problem for me some time ago.

Useful discussions in forum

@jzy3d jzy3d added the bug Something isn't working label Dec 21, 2022
@jzy3d
Copy link
Owner Author

jzy3d commented Jan 8, 2023

Julien proposed a fix that worked : You have to replace in GLProfile.java:

} else if(GL2 == profile && hasAnyGL234Impl && ( desktopCtxUndef || GLContext.isGL2Available(device, isHardwareRasterizer))) {
            return desktopCtxUndef ? GL2 : GLContext.getAvailableGLProfileName(device, 2, GLContext.CTX_PROFILE_COMPAT);

by:

} else if(GL2 == profile && hasAnyGL234Impl && ( desktopCtxUndef || GLContext.isGL2Available(device, isHardwareRasterizer))) {
            return desktopCtxUndef || (GL3bc == GLContext.getAvailableGLProfileName(device, 2, GLContext.CTX_PROFILE_COMPAT) && !GLContext.isGL3bcAvailable(device, isHardwareRasterizer)) ? GL2 : GLContext.getAvailableGLProfileName(device, 2, GLContext.CTX_PROFILE_COMPAT);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant