Rémi Bernon (@rbernon) commented about dlls/opengl32/wgl.c:
if (!(formats = get_pixel_formats( hdc, &num_formats, &num_onscreen_formats ))) return 0; if (!ppfd) return num_onscreen_formats;
- if (index == FAKE_16BIT_MEMDC_PIXEL_FORMAT)
I think we should fixup the 16bpp pixel formats in the list (for instance replacing RGB565 with RGBA5551), or extend, or hardcode the list, for memory DCs, rather than returning a fake index from only one of the functions.