From: Samuel Rødal Date: Thu, 6 Oct 2011 09:46:23 +0000 (+0200) Subject: Be nice to implementations in wayland_egl backend. X-Git-Tag: qt-v5.0.0-alpha1~209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4b03abb23d6c623139ffef3c458c2218f251e51;p=profile%2Fivi%2Fqtwayland.git Be nice to implementations in wayland_egl backend. Set the texture filtering modes so the implementation doesn't have to. Change-Id: I5515d61b7a04a9b242039012fc66d26dce7737ec Reviewed-on: http://codereview.qt-project.org/6223 Reviewed-by: Paul Olav Tvete Sanity-Review: Qt Sanity Bot --- diff --git a/src/qt-compositor/hardware_integration/wayland_egl/waylandeglintegration.cpp b/src/qt-compositor/hardware_integration/wayland_egl/waylandeglintegration.cpp index 497c7eb..83f75be 100644 --- a/src/qt-compositor/hardware_integration/wayland_egl/waylandeglintegration.cpp +++ b/src/qt-compositor/hardware_integration/wayland_egl/waylandeglintegration.cpp @@ -122,6 +122,11 @@ GLuint WaylandEglIntegration::createTextureFromBuffer(wl_buffer *buffer) glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, image); + glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); + glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + eglDestroyImageKHR(d->egl_display, image); return textureId;