From e35fefdc06b9a185899df9f3d3bcdaedfb0d2895 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 2 Aug 2014 11:59:04 +0200 Subject: [PATCH] - better rebind the active shader after updating the matrices. --- src/gl/shaders/gl_shader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/shaders/gl_shader.cpp b/src/gl/shaders/gl_shader.cpp index 480d97d25..7cd6ead74 100644 --- a/src/gl/shaders/gl_shader.cpp +++ b/src/gl/shaders/gl_shader.cpp @@ -520,6 +520,7 @@ void FShaderManager::ApplyMatrices(VSMatrix *proj, VSMatrix *view) { mEffectShaders[i]->ApplyMatrices(proj, view); } + if (mActiveShader != NULL) mActiveShader->Bind(); } //==========================================================================