From 818a936e99e8a2d42d41f09df6fda8cd3f6a6884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 29 Apr 2011 16:33:23 +0200 Subject: [PATCH] Only use GLSL blur shader if ShaderManager is valid --- effects/blur/blurshader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/blur/blurshader.cpp b/effects/blur/blurshader.cpp index 5e0da02e19..6bbabe28d6 100644 --- a/effects/blur/blurshader.cpp +++ b/effects/blur/blurshader.cpp @@ -129,6 +129,8 @@ bool GLSLBlurShader::supported() { if (!GLPlatform::instance()->supports(GLSL)) return false; + if (!ShaderManager::instance()->isValid()) + return false; (void) glGetError(); // Clear the error state