mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
render/gles2: don't eglGetConfigAttrib on EGL_NO_CONFIG_KHR
If we don't have an EGL config, don't try to query anything from it.
This commit is contained in:
parent
6ff478632a
commit
be8403e73d
1 changed files with 4 additions and 2 deletions
|
@ -453,8 +453,10 @@ static enum wl_shm_format gles2_preferred_read_format(
|
||||||
pop_gles2_debug(renderer);
|
pop_gles2_debug(renderer);
|
||||||
|
|
||||||
EGLint alpha_size = -1;
|
EGLint alpha_size = -1;
|
||||||
|
if (renderer->egl->config != EGL_NO_CONFIG_KHR) {
|
||||||
eglGetConfigAttrib(renderer->egl->display, renderer->egl->config,
|
eglGetConfigAttrib(renderer->egl->display, renderer->egl->config,
|
||||||
EGL_ALPHA_SIZE, &alpha_size);
|
EGL_ALPHA_SIZE, &alpha_size);
|
||||||
|
}
|
||||||
|
|
||||||
const struct wlr_gles2_pixel_format *fmt =
|
const struct wlr_gles2_pixel_format *fmt =
|
||||||
get_gles2_format_from_gl(gl_format, gl_type, alpha_size > 0);
|
get_gles2_format_from_gl(gl_format, gl_type, alpha_size > 0);
|
||||||
|
|
Loading…
Reference in a new issue