From 56b2d8d8aa4f118e5303cd3babee9a0ac9f077d0 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 16 Apr 2023 21:17:00 +0200 Subject: [PATCH] platformsupport/scenes/opengl: pass the correct arguments into eglDestroyImageKHR --- src/platformsupport/scenes/opengl/abstract_egl_backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp b/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp index 21592cd290..431c1fe388 100644 --- a/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp +++ b/src/platformsupport/scenes/opengl/abstract_egl_backend.cpp @@ -81,7 +81,7 @@ void AbstractEglBackend::teardown() void AbstractEglBackend::cleanup() { for (const EGLImageKHR &image : m_importedBuffers) { - eglDestroyImageKHR(m_display, image); + eglDestroyImageKHR(m_display->handle(), image); } cleanupSurfaces(); @@ -291,7 +291,7 @@ EGLImageKHR AbstractEglBackend::importBufferAsImage(KWaylandServer::LinuxDmaBufV if (image != EGL_NO_IMAGE_KHR) { m_importedBuffers[buffer] = image; connect(buffer, &QObject::destroyed, this, [this, buffer]() { - eglDestroyImageKHR(m_display, m_importedBuffers.take(buffer)); + eglDestroyImageKHR(m_display->handle(), m_importedBuffers.take(buffer)); }); }