mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 05:05:57 +01:00
render/gles2: require GL_EXT_unpack_subimage
We implicitly depended on this extension.
This commit is contained in:
parent
e57a52e7f7
commit
3fd8098881
2 changed files with 5 additions and 1 deletions
|
@ -893,6 +893,11 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl) {
|
||||||
free(renderer);
|
free(renderer);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
if (!check_gl_ext(exts_str, "GL_EXT_unpack_subimage")) {
|
||||||
|
wlr_log(WLR_ERROR, "GL_EXT_unpack_subimage not supported");
|
||||||
|
free(renderer);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
renderer->exts.read_format_bgra_ext =
|
renderer->exts.read_format_bgra_ext =
|
||||||
check_gl_ext(exts_str, "GL_EXT_read_format_bgra");
|
check_gl_ext(exts_str, "GL_EXT_read_format_bgra");
|
||||||
|
|
|
@ -55,7 +55,6 @@ static bool gles2_texture_write_pixels(struct wlr_texture *wlr_texture,
|
||||||
get_gles2_format_from_wl(texture->wl_format);
|
get_gles2_format_from_wl(texture->wl_format);
|
||||||
assert(fmt);
|
assert(fmt);
|
||||||
|
|
||||||
// TODO: what if the unpack subimage extension isn't supported?
|
|
||||||
push_gles2_debug(texture->renderer);
|
push_gles2_debug(texture->renderer);
|
||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, texture->tex);
|
glBindTexture(GL_TEXTURE_2D, texture->tex);
|
||||||
|
|
Loading…
Reference in a new issue