From 44ee7984fccbeae57e108c1a152050e9d3437174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lind?= Date: Thu, 13 Feb 2014 21:59:56 +0100 Subject: QOpenGLTextureBlitter: fix source rect when origin is top left This fixes the issue that the blitter required sometimes the texture wrapping to be repeat Change-Id: I86150d008422facf9040873b0983b0e44be9ad24 Reviewed-by: Laszlo Agocs --- tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/manual') diff --git a/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp b/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp index 503e326f38..8f51f511c9 100644 --- a/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp +++ b/tests/manual/qopengltextureblitter/qopengltextureblitwindow.cpp @@ -81,6 +81,7 @@ void QOpenGLTextureBlitWindow::render() glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); QOpenGLTexture texture(m_image); + texture.setWrapMode(QOpenGLTexture::ClampToEdge); texture.create(); QOpenGLTexture texture_mirrored(m_image_mirrord); -- cgit v1.2.3