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:
parent
7335d54209
commit
8cffad3fe8
1 changed files with 2 additions and 2 deletions
|
@ -86,8 +86,8 @@ ClientBuffer *DrmClientBufferIntegration::createBuffer(::wl_resource *resource)
|
||||||
resolved = true;
|
resolved = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
EGLint format;
|
EGLint height;
|
||||||
if (eglQueryWaylandBufferWL(eglDisplay, resource, EGL_TEXTURE_FORMAT, &format)) {
|
if (eglQueryWaylandBufferWL(eglDisplay, resource, EGL_HEIGHT, &height)) {
|
||||||
return new DrmClientBuffer(resource, this);
|
return new DrmClientBuffer(resource, this);
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in a new issue