mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-21 11:31:41 +00:00
- removed vid_hw2d CVar.
This commit is contained in:
parent
62f073ef60
commit
0c3635e22c
8 changed files with 1 additions and 38 deletions
|
@ -79,13 +79,8 @@
|
||||||
CVAR(Int, gl_showpacks, 0, 0)
|
CVAR(Int, gl_showpacks, 0, 0)
|
||||||
#ifndef WIN32 // Defined in fb_d3d9 for Windows
|
#ifndef WIN32 // Defined in fb_d3d9 for Windows
|
||||||
CVAR(Bool, vid_hwaalines, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
CVAR(Bool, vid_hwaalines, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||||
CUSTOM_CVAR(Bool, vid_hw2d, true, CVAR_NOINITCALL)
|
|
||||||
{
|
|
||||||
V_SetBorderNeedRefresh();
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
EXTERN_CVAR(Bool, vid_hwaalines)
|
EXTERN_CVAR(Bool, vid_hwaalines)
|
||||||
EXTERN_CVAR(Bool, vid_hw2d)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, fullscreen)
|
EXTERN_CVAR(Bool, fullscreen)
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
#include "swrenderer/viewport/r_viewport.h"
|
#include "swrenderer/viewport/r_viewport.h"
|
||||||
#include "swrenderer/r_swcolormaps.h"
|
#include "swrenderer/r_swcolormaps.h"
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, r_shadercolormaps)
|
|
||||||
EXTERN_CVAR(Int, screenblocks)
|
EXTERN_CVAR(Int, screenblocks)
|
||||||
EXTERN_CVAR(Float, r_visibility)
|
EXTERN_CVAR(Float, r_visibility)
|
||||||
void InitGLRMapinfoData();
|
void InitGLRMapinfoData();
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
EXTERN_CVAR(Bool, r_drawplayersprites)
|
EXTERN_CVAR(Bool, r_drawplayersprites)
|
||||||
EXTERN_CVAR(Bool, r_deathcamera)
|
EXTERN_CVAR(Bool, r_deathcamera)
|
||||||
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
||||||
EXTERN_CVAR(Bool, r_shadercolormaps)
|
|
||||||
|
|
||||||
void RenderPolyPlayerSprites::Render(PolyRenderThread *thread)
|
void RenderPolyPlayerSprites::Render(PolyRenderThread *thread)
|
||||||
{
|
{
|
||||||
|
@ -386,13 +385,6 @@ void RenderPolyPlayerSprites::RenderSprite(PolyRenderThread *thread, DPSprite *p
|
||||||
noaccel = true;
|
noaccel = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If we're drawing with a special colormap, but shaders for them are disabled, do
|
|
||||||
// not accelerate.
|
|
||||||
if (!r_shadercolormaps && (vis.Light.BaseColormap >= &SpecialSWColormaps[0] &&
|
|
||||||
vis.Light.BaseColormap <= &SpecialSWColormaps.Last()))
|
|
||||||
{
|
|
||||||
noaccel = true;
|
|
||||||
}
|
|
||||||
// If drawing with a BOOM colormap, disable acceleration.
|
// If drawing with a BOOM colormap, disable acceleration.
|
||||||
if (vis.Light.BaseColormap == &NormalLight && NormalLight.Maps != realcolormaps.Maps)
|
if (vis.Light.BaseColormap == &NormalLight && NormalLight.Maps != realcolormaps.Maps)
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,7 +60,6 @@ CUSTOM_CVAR (Bool, cl_oldfreelooklimit, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG
|
||||||
players[consoleplayer].SendPitchLimits();
|
players[consoleplayer].SendPitchLimits();
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, r_shadercolormaps)
|
|
||||||
EXTERN_CVAR(Float, maxviewpitch) // [SP] CVAR from OpenGL Renderer
|
EXTERN_CVAR(Float, maxviewpitch) // [SP] CVAR from OpenGL Renderer
|
||||||
EXTERN_CVAR(Bool, r_drawvoxels)
|
EXTERN_CVAR(Bool, r_drawvoxels)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
#include "swrenderer/scene/r_light.h"
|
#include "swrenderer/scene/r_light.h"
|
||||||
#include "swrenderer/viewport/r_viewport.h"
|
#include "swrenderer/viewport/r_viewport.h"
|
||||||
|
|
||||||
CVAR(Bool, r_shadercolormaps, true, CVAR_ARCHIVE)
|
|
||||||
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
||||||
|
|
||||||
namespace swrenderer
|
namespace swrenderer
|
||||||
|
|
|
@ -63,7 +63,6 @@
|
||||||
void PeekThreadedErrorPane();
|
void PeekThreadedErrorPane();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, r_shadercolormaps)
|
|
||||||
EXTERN_CVAR(Int, r_clearbuffer)
|
EXTERN_CVAR(Int, r_clearbuffer)
|
||||||
|
|
||||||
CVAR(Bool, r_scene_multithreaded, false, 0);
|
CVAR(Bool, r_scene_multithreaded, false, 0);
|
||||||
|
@ -164,13 +163,6 @@ namespace swrenderer
|
||||||
|
|
||||||
MainThread()->Viewport->viewpoint.camera->renderflags = savedflags;
|
MainThread()->Viewport->viewpoint.camera->renderflags = savedflags;
|
||||||
interpolator.RestoreInterpolations();
|
interpolator.RestoreInterpolations();
|
||||||
|
|
||||||
// If we don't want shadered colormaps, NULL it now so that the
|
|
||||||
// copy to the screen does not use a special colormap shader.
|
|
||||||
if (!r_shadercolormaps && !MainThread()->Viewport->RenderTarget->IsBgra())
|
|
||||||
{
|
|
||||||
CameraLight::Instance()->ClearShaderColormap();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderScene::RenderPSprites()
|
void RenderScene::RenderPSprites()
|
||||||
|
|
|
@ -68,7 +68,6 @@
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, r_drawplayersprites)
|
EXTERN_CVAR(Bool, r_drawplayersprites)
|
||||||
EXTERN_CVAR(Bool, r_deathcamera)
|
EXTERN_CVAR(Bool, r_deathcamera)
|
||||||
EXTERN_CVAR(Bool, r_shadercolormaps)
|
|
||||||
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor)
|
||||||
|
|
||||||
namespace swrenderer
|
namespace swrenderer
|
||||||
|
@ -388,13 +387,7 @@ namespace swrenderer
|
||||||
noaccel = true;
|
noaccel = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// If we're drawing with a special colormap, but shaders for them are disabled, do
|
|
||||||
// not accelerate.
|
|
||||||
if (!r_shadercolormaps && (vis.Light.BaseColormap >= &SpecialSWColormaps[0] &&
|
|
||||||
vis.Light.BaseColormap <= &SpecialSWColormaps.Last()))
|
|
||||||
{
|
|
||||||
noaccel = true;
|
|
||||||
}
|
|
||||||
// If drawing with a BOOM colormap, disable acceleration.
|
// If drawing with a BOOM colormap, disable acceleration.
|
||||||
if (vis.Light.BaseColormap == &NormalLight && NormalLight.Maps != realcolormaps.Maps)
|
if (vis.Light.BaseColormap == &NormalLight && NormalLight.Maps != realcolormaps.Maps)
|
||||||
{
|
{
|
||||||
|
|
|
@ -187,13 +187,7 @@ const char *const D3DFB::ShaderNames[D3DFB::NUM_SHADERS] =
|
||||||
|
|
||||||
// PUBLIC DATA DEFINITIONS -------------------------------------------------
|
// PUBLIC DATA DEFINITIONS -------------------------------------------------
|
||||||
|
|
||||||
CUSTOM_CVAR(Bool, vid_hw2d, true, CVAR_NOINITCALL)
|
|
||||||
{
|
|
||||||
V_SetBorderNeedRefresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
CVAR(Bool, d3d_antilag, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
CVAR(Bool, d3d_antilag, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
CVAR(Int, d3d_showpacks, 0, 0)
|
|
||||||
CVAR(Bool, vid_hwaalines, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
CVAR(Bool, vid_hwaalines, true, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
|
|
||||||
// CODE --------------------------------------------------------------------
|
// CODE --------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue