22 #include "../../SDL_internal.h"
42 switch (buffer_bit_depth) {
44 return SCREEN_FORMAT_RGBX8888;
46 return SCREEN_FORMAT_RGB888;
48 switch (alpha_bit_depth) {
50 return SCREEN_FORMAT_RGBX4444;
52 return SCREEN_FORMAT_RGBA5551;
54 return SCREEN_FORMAT_RGB565;
83 if (egl_num_configs == 0) {
88 egl_configs =
malloc(egl_num_configs *
sizeof(*egl_configs));
89 if (egl_configs ==
NULL) {
102 for (i = 0; i < egl_num_configs; i++) {
118 egl_conf = egl_configs[
i];
200 (
EGLint *)&egl_surf_attr);