Only use GLSL blur shader if ShaderManager is valid
This commit is contained in:
parent
24b9a8c9db
commit
818a936e99
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue