PDA

View Full Version : eglCreateWindowSurface fails with EGL_BAD_MATCH



Teraslilja
05-12-2011, 08:03 AM
For some reason the configuration selection fails miserably (Nokia N900).

When I query available visuals and FB configurations, I got
Total X visuals = 2
RGB 0xF800.0x07E0.0x001F, Depth = 16, class = 4
RGB 0xFF0000.0xFF00.0x00FF, Depth = 32, class = 4

Total glX configurations = 2
RGBA 5.6.5.0, Depth 16, visual = 32770
RGBA 8.8.8.0, Depth 16, visual = 32770

Total EGL configurations = 6
RGBA = 5.6.5.0, Depth = 0, Class = 4
RGBA = 5.6.5.0, Depth = 24, Class = 4
RGBA = 5.6.5.0, Depth = 24, Class = 4
RGBA = 8.8.8.8, Depth = 0, Class = 4
RGBA = 8.8.8.8, Depth = 24, Class = 4
RGBA = 8.8.8.8, Depth = 24, Class = 4

Matching EGL configurations = 4 (by eglChooseConfig(...))
EGL configurations = 4
RGBA = 8.8.8.8, Depth = 24, Class = 4
RGBA = 8.8.8.8, Depth = 24, Class = 4
RGBA = 5.6.5.0, Depth = 24, Class = 4
RGBA = 5.6.5.0, Depth = 24, Class = 4

How it can be possible that there is no matching depth value (16/32 vs 24)??
How configuration should be done successfully?