Query height instead of texture format

Texture queries do not seem to work on nvidia and QtQuick windows
will then no be rendered.
This commit is contained in:
David Redondo 2021-07-27 17:17:54 +02:00
parent 7335d54209
commit 8cffad3fe8

View file

@ -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;