From 8cffad3fe8937babfbf6cd139216fda0f63ca626 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Tue, 27 Jul 2021 17:17:54 +0200 Subject: [PATCH] Query height instead of texture format Texture queries do not seem to work on nvidia and QtQuick windows will then no be rendered. --- src/wayland/drmclientbuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;