Use standard function for create egl images

This commit is contained in:
loki
2021-08-15 22:19:08 +02:00
parent d852bb82a3
commit 1d2e042240
2 changed files with 5 additions and 5 deletions

View File

@@ -184,11 +184,11 @@ KITTY_USING_MOVE_T(rgb_t, rgb_img_t, , {
KITTY_USING_MOVE_T(nv12_t, nv12_img_t, , {
if(el.r8) {
eglDestroyImageKHR(el.display, el.r8);
eglDestroyImage(el.display, el.r8);
}
if(el.bg88) {
eglDestroyImageKHR(el.display, el.bg88);
eglDestroyImage(el.display, el.bg88);
}
});