Android: Couldn't find matching EGL config

I’ve tested my app on about 10 different Android phones and they all work fine except for one.

I get this error when SDL tried to create the Window:

orientation=6 width=1520 height=720
SDL Window creation fail : Couldn’t find matching EGL config (call to eglChooseConfig failed, reporting an error of EGL_BAD_ATTRIBUTE)

The phone is running Android 10.
I have other Android 10 phones that work fine.
Any ideas?

Does your app call SDL_GL_SetAttribute()? I’m guessing this is the error you would get if you request an attribute which that specific device cannot deliver.

Ah, thank you so much!
I had these lines and removing them fixed the problem:

1 Like