Hook up gl_ssao

This commit is contained in:
Magnus Norddahl 2020-01-03 18:34:43 +01:00
parent 6ba04e7a09
commit 13a7b7d4b2
6 changed files with 40 additions and 3 deletions

View file

@ -172,7 +172,8 @@ void GLInstance::InitGLState(int fogmode, int multisample)
// This is a bad place to call this but without deconstructing the entire render loops in all front ends there is no way to have a well defined spot for this stuff.
// Before doing that the backend needs to work in some fashion, so we have to make sure everything is set up when the first render call is performed.
screen->BeginFrame();
OpenGLRenderer::GLRenderer->mBuffers->BindSceneFB(false);
bool useSSAO = (gl_ssao != 0);
OpenGLRenderer::GLRenderer->mBuffers->BindSceneFB(useSSAO);
}
void GLInstance::Deinit()