Fix missing FGLRenderBuffers::IsEnabled checks
This commit is contained in:
parent
04c59b434b
commit
d4615861ae
2 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue