diff --git a/src/wayland/drmclientbuffer.cpp b/src/wayland/drmclientbuffer.cpp index 9332a75317..7c7532bd47 100644 --- a/src/wayland/drmclientbuffer.cpp +++ b/src/wayland/drmclientbuffer.cpp @@ -86,8 +86,8 @@ ClientBuffer *DrmClientBufferIntegration::createBuffer(::wl_resource *resource) resolved = true; } - EGLint format; - if (eglQueryWaylandBufferWL(eglDisplay, resource, EGL_TEXTURE_FORMAT, &format)) { + EGLint height; + if (eglQueryWaylandBufferWL(eglDisplay, resource, EGL_HEIGHT, &height)) { return new DrmClientBuffer(resource, this); } return nullptr;