- route the BlurScene call in the menu through DFrameBuffer.

Game code should never ever call the renderer directly. This must be done through the video interface so that it can also work with other framebuffers later.
This commit is contained in:
Christoph Oelckers 2018-05-18 00:22:57 +02:00
commit 1656bbf9ec
5 changed files with 9 additions and 5 deletions

View file

@ -382,6 +382,11 @@ void OpenGLFrameBuffer::ResetFixedColormap()
}
}
void OpenGLFrameBuffer::BlurScene(float amount)
{
GLRenderer->BlurScene(amount);
}
bool OpenGLFrameBuffer::RenderBuffersEnabled()
{
return FGLRenderBuffers::IsEnabled();