mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +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"
|
||||
|
||||
CVAR(Int, gl_multisample, 1, CVAR_ARCHIVE|CVAR_GLOBALCONFIG);
|
||||
CUSTOM_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();
|
||||
}
|
||||
}
|
||||
CVAR(Bool, gl_renderbuffers, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
@ -161,6 +154,7 @@ bool FGLRenderBuffers::Setup(int width, int height, int sceneWidth, int sceneHei
|
|||
if (BuffersActive)
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, mOutputFB);
|
||||
BuffersActive = gl_renderbuffers;
|
||||
GLRenderer->mShaderManager->ResetFixedColormap();
|
||||
}
|
||||
|
||||
if (!IsEnabled())
|
||||
|
|
Loading…
Reference in a new issue