From 5dd2e2b895af03f0aaa0ffaef7615ff41960cec6 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Mon, 9 Jun 2014 11:41:03 +0200 Subject: Make sure program is bound before calling initialize(). Some implementations will use the initialization to set constant uniforms like texture locations, so bind the program before so this will work. Task-number: QTBUG-39472 Change-Id: I677c5aeefe68535bd4805e83b93308d0bd090030 Reviewed-by: Laszlo Agocs --- src/quick/scenegraph/qsgcontext.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/scenegraph/qsgcontext.cpp') diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp index 6a69ea02db..9328c302d4 100644 --- a/src/quick/scenegraph/qsgcontext.cpp +++ b/src/quick/scenegraph/qsgcontext.cpp @@ -644,6 +644,7 @@ void QSGRenderContext::compile(QSGMaterialShader *shader, QSGMaterial *material, void QSGRenderContext::initialize(QSGMaterialShader *shader) { + shader->program()->bind(); shader->initialize(); } -- cgit v1.2.3