mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00: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
@ -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 New Issue
Block a user