mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-24 04:41:53 +00:00
- handle colormap parameter reset when renderbuffers are toggled.
This commit is contained in:
parent
cb1946f51b
commit
90ab0223a6
1 changed files with 2 additions and 8 deletions
|
@ -55,14 +55,7 @@
|
||||||
#include "doomerrors.h"
|
#include "doomerrors.h"
|
||||||
|
|
||||||
CVAR(Int, gl_multisample, 1, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
CVAR(Int, gl_multisample, 1, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||||
CUSTOM_CVAR(Bool, gl_renderbuffers, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
CVAR(Bool, gl_renderbuffers, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
||||||
{
|
|
||||||
// this CVAR alters some fixed colormap related settings
|
|
||||||
if (GLRenderer != nullptr && GLRenderer->mShaderManager != nullptr)
|
|
||||||
{
|
|
||||||
//GLRenderer->mShaderManager->ResetFixedColormap();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
|
@ -161,6 +154,7 @@ bool FGLRenderBuffers::Setup(int width, int height, int sceneWidth, int sceneHei
|
||||||
if (BuffersActive)
|
if (BuffersActive)
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, mOutputFB);
|
glBindFramebuffer(GL_FRAMEBUFFER, mOutputFB);
|
||||||
BuffersActive = gl_renderbuffers;
|
BuffersActive = gl_renderbuffers;
|
||||||
|
GLRenderer->mShaderManager->ResetFixedColormap();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IsEnabled())
|
if (!IsEnabled())
|
||||||
|
|
Loading…
Reference in a new issue