Fix build without Wayland (try 1)

This commit is contained in:
Martin Gräßlin 2015-03-20 15:46:24 +01:00
parent bcf5eedb0f
commit 8d8c6b09ac

View file

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