Im not 100% sure why its failing to get the correct requested size, or rather why mir is not requesting a 24/32bit color. Ill take a look at this! Hopefully that turns out to be the issue. As it seems by default to request a 15/16 bi color
This is where its getting the gl_config (requested size) then setting the bits internal when it create the egl config. (Also note this is not the same code X11 runs! Since it wont be using EGL)
So it looks like mir is getting the correct requested size (for the most parts a 6 instead of a 5). The main issue is why is it requesting a 5? This could be my fault here for not manually forcing the 24/32 bit or the clients fault for not forcing it. Ill take a deeper look.
AFAIK SDL2 should support 24/32 bit colors... I do find that strange since on X11:
INFO: SDL_GL_RED_SIZE: requested 5, got 8
INFO: SDL_GL_GREEN_SIZE: requested 5, got 8
INFO: SDL_GL_BLUE_SIZE: requested 5, got 8
INFO: SDL_GL_DEPTH_SIZE: requested 16, got 24
Im not 100% sure why its failing to get the correct requested size, or rather why mir is not requesting a 24/32bit color. Ill take a look at this! Hopefully that turns out to be the issue. As it seems by default to request a 15/16 bi color
http:// hg.libsdl. org/SDL/ file/704a0bfecf 75/src/ video/SDL_ egl.c#l242
This is where its getting the gl_config (requested size) then setting the bits internal when it create the egl config. (Also note this is not the same code X11 runs! Since it wont be using EGL)
So it looks like mir is getting the correct requested size (for the most parts a 6 instead of a 5). The main issue is why is it requesting a 5? This could be my fault here for not manually forcing the 24/32 bit or the clients fault for not forcing it. Ill take a deeper look.
Cheers