mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
render/gles2: check external-only flag in get_or_create_buffer()
If the external-only flag is set, then the EGLImage is only supported for use with GL_TEXTURE_EXTERNAL_OES texture targets. In particular, the EGLImage cannot be bound to a RBO.
This commit is contained in:
parent
9118226634
commit
62b6c492d5
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,11 @@ static struct wlr_gles2_buffer *get_or_create_buffer(struct wlr_gles2_renderer *
|
|||
goto error_buffer;
|
||||
}
|
||||
|
||||
if (external_only) {
|
||||
wlr_log(WLR_ERROR, "DMA-BUF format is external-only");
|
||||
goto error_image;
|
||||
}
|
||||
|
||||
push_gles2_debug(renderer);
|
||||
|
||||
glGenRenderbuffers(1, &buffer->rbo);
|
||||
|
|
Loading…
Reference in a new issue