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.
master
Simon Ser 12 months ago committed by Alexander Orzechowski
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…
Cancel
Save