mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-23 05:15:58 +01:00
render: Fix blit_dmabuf() breakage due to API change
This commit is contained in:
parent
e0d4f75172
commit
78d6eed6b3
1 changed files with 3 additions and 1 deletions
|
@ -364,7 +364,9 @@ static bool gles2_blit_dmabuf(struct wlr_renderer *wlr_renderer,
|
||||||
|
|
||||||
// TODO: The imported buffer should be checked with
|
// TODO: The imported buffer should be checked with
|
||||||
// eglQueryDmaBufModifiersEXT to see if it may be modified.
|
// eglQueryDmaBufModifiersEXT to see if it may be modified.
|
||||||
EGLImageKHR image = wlr_egl_create_image_from_dmabuf(egl, dst_attr);
|
bool external_only = false;
|
||||||
|
EGLImageKHR image = wlr_egl_create_image_from_dmabuf(egl, dst_attr,
|
||||||
|
&external_only);
|
||||||
if (image == EGL_NO_IMAGE_KHR) {
|
if (image == EGL_NO_IMAGE_KHR) {
|
||||||
goto texture_destroy_out;
|
goto texture_destroy_out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue