mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
Fix missing FGLRenderBuffers::IsEnabled checks
This commit is contained in:
parent
04c59b434b
commit
d4615861ae
2 changed files with 5 additions and 2 deletions
|
@ -207,7 +207,7 @@ void FGLRenderer::BloomScene()
|
|||
|
||||
void FGLRenderer::TonemapScene()
|
||||
{
|
||||
if (gl_tonemap == 0)
|
||||
if (gl_tonemap == 0 || !FGLRenderBuffers::IsEnabled())
|
||||
return;
|
||||
|
||||
FGLPostProcessState savedState;
|
||||
|
@ -229,7 +229,7 @@ void FGLRenderer::TonemapScene()
|
|||
|
||||
void FGLRenderer::LensDistortScene()
|
||||
{
|
||||
if (gl_lens == 0)
|
||||
if (gl_lens == 0 || !FGLRenderBuffers::IsEnabled())
|
||||
return;
|
||||
|
||||
float k[4] =
|
||||
|
|
|
@ -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…
Reference in a new issue