Fix build without Wayland (try 1)
This commit is contained in:
parent
bcf5eedb0f
commit
8d8c6b09ac
1 changed files with 2 additions and 0 deletions
|
@ -247,6 +247,7 @@ bool AbstractEglTexture::loadTexture(xcb_pixmap_t pix, const QSize &size)
|
||||||
|
|
||||||
void AbstractEglTexture::updateTexture(WindowPixmap *pixmap)
|
void AbstractEglTexture::updateTexture(WindowPixmap *pixmap)
|
||||||
{
|
{
|
||||||
|
#if HAVE_WAYLAND
|
||||||
const auto &buffer = pixmap->buffer();
|
const auto &buffer = pixmap->buffer();
|
||||||
if (buffer.isNull()) {
|
if (buffer.isNull()) {
|
||||||
return;
|
return;
|
||||||
|
@ -281,6 +282,7 @@ void AbstractEglTexture::updateTexture(WindowPixmap *pixmap)
|
||||||
GL_BGRA, GL_UNSIGNED_BYTE, im.copy(rect).bits());
|
GL_BGRA, GL_UNSIGNED_BYTE, im.copy(rect).bits());
|
||||||
}
|
}
|
||||||
q->unbind();
|
q->unbind();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_WAYLAND
|
#if HAVE_WAYLAND
|
||||||
|
|
Loading…
Reference in a new issue