Skip to content

Commit

Permalink
Fix to not try to use ssao if driver does not support it.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcode authored and DolceTriade committed Jun 8, 2015
1 parent 5b28a16 commit 3f72eb1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/engine/renderer/tr_shade.cpp
Expand Up @@ -114,7 +114,13 @@ static void GLSL_InitGPUShadersOrError()

gl_shaderManager.load( gl_motionblurShader );

gl_shaderManager.load( gl_ssaoShader );
if (r_ssao->integer > 0)
{
if (GLEW_ARB_texture_gather)
gl_shaderManager.load(gl_ssaoShader);
else
Log::Warn("SSAO not used because GL_ARB_texture_gather is not available.");
}

gl_shaderManager.load( gl_fxaaShader );

Expand Down

0 comments on commit 3f72eb1

Please sign in to comment.