wayland: Explicitly require RGBA8888

Its the format we expect to have. If we want to
support 10-bit visuals at some point, that should
be an explicit decision.
This commit is contained in:
Matthias Clasen
2019-06-17 12:41:01 -04:00
parent 97ba872ef3
commit bbea1cc841

View File

@@ -391,13 +391,13 @@ find_eglconfig_for_surface (GdkSurface *surface,
attrs[i++] = EGL_RGB_BUFFER;
attrs[i++] = EGL_RED_SIZE;
attrs[i++] = 1;
attrs[i++] = 8;
attrs[i++] = EGL_GREEN_SIZE;
attrs[i++] = 1;
attrs[i++] = 8;
attrs[i++] = EGL_BLUE_SIZE;
attrs[i++] = 1;
attrs[i++] = 8;
attrs[i++] = EGL_ALPHA_SIZE;
attrs[i++] = 1;
attrs[i++] = 8;
attrs[i++] = EGL_NONE;
g_assert (i < MAX_EGL_ATTRS);