summaryrefslogtreecommitdiffstats
path: root/src/opengl/qwindowsurface_gl.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-11-05 00:25:12 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-11-05 06:46:05 (GMT)
commitb91f1a2f749586014e8b28c6766015ff6ba62ee7 (patch)
treeb7c4eebcd52754645f463b363a425ce163f643a9 /src/opengl/qwindowsurface_gl.cpp
parent23572588c4b0c759c14a6c1687e5bd86461e31e8 (diff)
downloadQt-b91f1a2f749586014e8b28c6766015ff6ba62ee7.zip
Qt-b91f1a2f749586014e8b28c6766015ff6ba62ee7.tar.gz
Qt-b91f1a2f749586014e8b28c6766015ff6ba62ee7.tar.bz2
Modify QGLShader and QGLShaderProgram in response to API review
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/opengl/qwindowsurface_gl.cpp')
-rw-r--r--src/opengl/qwindowsurface_gl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qwindowsurface_gl.cpp b/src/opengl/qwindowsurface_gl.cpp
index ebe101d..f1f5976 100644
--- a/src/opengl/qwindowsurface_gl.cpp
+++ b/src/opengl/qwindowsurface_gl.cpp
@@ -625,7 +625,7 @@ void QGLWindowSurface::flush(QWidget *widget, const QRegion &rgn, const QPoint &
QGLShaderProgram *blitProgram =
QGLEngineSharedShaders::shadersForContext(ctx)->blitProgram();
- blitProgram->enable();
+ blitProgram->bind();
blitProgram->setUniformValue("imageTexture", 0 /*QT_IMAGE_TEXTURE_UNIT*/);
// The shader manager's blit program does not multiply the