Fix missing FGLRenderBuffers::IsEnabled checks

This commit is contained in:
Magnus Norddahl 2016-08-06 23:42:37 +02:00 committed by Christoph Oelckers
commit d4615861ae
2 changed files with 5 additions and 2 deletions

View file

@ -141,6 +141,9 @@ void FGLRenderBuffers::DeleteFrameBuffer(GLuint &handle)
void FGLRenderBuffers::Setup(int width, int height)
{
if (!IsEnabled())
return;
int samples = GetCvarSamples();
if (width == mWidth && height == mHeight && mSamples != samples)