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

[WiP] GTK: add OpenGL ES support #813

Closed
wants to merge 5 commits into from

Conversation

thesourcehim
Copy link
Contributor

Added support for GLES in posix/gtk frontend. Does not work for now, initialization fails with missing extension. See #812.

@thesourcehim
Copy link
Contributor Author

Figured what was wrong with initialization. Starts properly now, but the image renders incorrectly, like it is partially visible behind black surface

gles_test

@thesourcehim
Copy link
Contributor Author

thesourcehim commented Jul 15, 2024

Setting multisampling to something other than 'None' makes problem less apparent. Also 2d renders fine it looks like, it's only 3d elements that hide behind blackness.

Edit: I tried with intel GPU instead of nvidia and 3d is totally invisible (all black), multisampling does not help

@rogerman
Copy link
Collaborator

Sorry, but there are some fundamental problems with the OpenGL ES renderer at the moment, which is why no port was updated to use it just yet. But I'm getting there. Just wait a few days and check back.

@thesourcehim
Copy link
Contributor Author

I just tested with commit 60385bd and the situation has improved somewhat: less black tint on nvidia gpu, but still present
nvidia
And it seems that the higher the fps the more black tint is on screen (threading issue?)

On intel gpu some blue dots appeared over blackness, but overall everything is still black on intel.

@rogerman
Copy link
Collaborator

Thanks for checking, but the ES renderer isn't meant to be working 100% just yet. It's still in a testing phase. As of now, there is still one major fundamental problem that exists.

When you see the "egl_3Demu.cpp" and "egl_3Demu.h" files appear under gtk2, then you'll know that the OpenGL ES renderer is "done".

@rogerman
Copy link
Collaborator

rogerman commented Aug 2, 2024

The ES renderer is now complete as of commit be51e41. I've updated all of the POSIX frontends to work with the new ES renderer using some of your work as inspiration.

  • If you're building with Autotools, you'll need to use --enable-opengles
  • If you're building with Meson, you'll need to set -Dopengles=true

@rogerman rogerman closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants