diff --git a/src/common/rendering/hwrenderer/postprocessing/hw_postprocess.cpp b/src/common/rendering/hwrenderer/postprocessing/hw_postprocess.cpp index 7a31ac4161..219bb9bd64 100644 --- a/src/common/rendering/hwrenderer/postprocessing/hw_postprocess.cpp +++ b/src/common/rendering/hwrenderer/postprocessing/hw_postprocess.cpp @@ -894,7 +894,7 @@ void PPShadowMap::Update(PPRenderState* renderstate) ///////////////////////////////////////////////////////////////////////////// -CVAR(Bool, gl_custompost, true, 0) +CVAR(Bool, gl_custompost, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL) void PPCustomShaders::Run(PPRenderState *renderstate, FString target) { diff --git a/src/common/textures/hw_material.cpp b/src/common/textures/hw_material.cpp index 3f149d7289..944e311d1b 100644 --- a/src/common/textures/hw_material.cpp +++ b/src/common/textures/hw_material.cpp @@ -30,7 +30,7 @@ #include "v_video.h" -CVAR(Bool, gl_customshader, true, 0); +CVAR(Bool, gl_customshader, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL); static IHardwareTexture* (*layercallback)(int layer, int translation);