mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +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()
|
void FGLRenderer::TonemapScene()
|
||||||
{
|
{
|
||||||
if (gl_tonemap == 0)
|
if (gl_tonemap == 0 || !FGLRenderBuffers::IsEnabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
FGLPostProcessState savedState;
|
FGLPostProcessState savedState;
|
||||||
|
@ -229,7 +229,7 @@ void FGLRenderer::TonemapScene()
|
||||||
|
|
||||||
void FGLRenderer::LensDistortScene()
|
void FGLRenderer::LensDistortScene()
|
||||||
{
|
{
|
||||||
if (gl_lens == 0)
|
if (gl_lens == 0 || !FGLRenderBuffers::IsEnabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float k[4] =
|
float k[4] =
|
||||||
|
|
|
@ -141,6 +141,9 @@ void FGLRenderBuffers::DeleteFrameBuffer(GLuint &handle)
|
||||||
|
|
||||||
void FGLRenderBuffers::Setup(int width, int height)
|
void FGLRenderBuffers::Setup(int width, int height)
|
||||||
{
|
{
|
||||||
|
if (!IsEnabled())
|
||||||
|
return;
|
||||||
|
|
||||||
int samples = GetCvarSamples();
|
int samples = GetCvarSamples();
|
||||||
|
|
||||||
if (width == mWidth && height == mHeight && mSamples != samples)
|
if (width == mWidth && height == mHeight && mSamples != samples)
|
||||||
|
|
Loading…
Reference in a new issue