-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
EGL_BAD_DISPLAY error on Mali G52 driver blob (GKD Mini Plus) #436
Comments
Have you tried |
Yes, that's the first thing i tried (export LIBGL_FB=1 as seen above in my post). It doesn't have X11 indeed, it's framebuffer only. SDL2 does work but i tried looking at how they do it but it's a verbose mess... |
I got further with
and it no longer crashes at EGL_BAD_DISPLAY it seems altho it still fails to create the SDL2 window for it :/
|
Ah, issue is gbm is still experimental on gl4es (so, it's still buggy). That's probably a bug in gl4es that needs fixing :( |
That's a shame : ( Whatever SDL2 does, the fix is in there... |
Thanks @JohnnyonFlame , he told me a trick that does work.
And then in the game's source code, force GLES so for SDL2, it's like this SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK,
SDL_GL_CONTEXT_PROFILE_ES); The game that i was playing (CroMagRally) will then work. Unfortunately this (for now) rules out proprietary ports unless i hack up SDL2 within itself to force GLES... |
You don't have the source of this SDL2 to see how they are creating the context? |
Well i'm just using SDL2 mainline source code, if i knew what the issue was i would tell you... (See the my2_SDL_CreateWindow changes) |
Ah yeah, this thing. It's quite old now, I forgot about it. |
Hello, been trying to use gl4es on the GKD Mini Plus but unfortunately i would get strange issues with gl4es specfically.
Mind you, GLES games with SDL2 are actually working fine !
I also had a similar issue with Dolphin emulator and we tracked it down to eglGetDisplay somehow failling.
I attempted something like this on Dolphin but it failed :
Here's how i run the game with it, i also tried with a simplier SDL2 GL test executable and it fails on creating the window (like CroMagRally does)
Here's the log from it :
I have no idea what kind of wizardry SDL2 is doing to work on this.
If i didn't disable the tests, it would fail at LIBGL: Error while gathering supported extension (eglInitialize: EGL_BAD_DISPLAY), default to none
The text was updated successfully, but these errors were encountered: