- Removed most checks on vid_hw2d/test2d. This now gets checked only once per

frame to avoid the remote possibility that it could change during the middle
  of drawing the frame and cause strange things to happen.
- Renamed test2d to vid_hw2d.


SVN r744 (trunk)
This commit is contained in:
Randy Heit 2008-02-14 04:58:45 +00:00
commit a9e2d96483
3 changed files with 16 additions and 11 deletions

View file

@ -108,8 +108,6 @@ private:
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
EXTERN_CVAR(Bool, test2d)
// PRIVATE DATA DEFINITIONS ------------------------------------------------
// PUBLIC DATA DEFINITIONS -------------------------------------------------
@ -138,7 +136,7 @@ bool D3DFB::WipeStartScreen(int type)
IDirect3DSurface9 *tsurf;
D3DSURFACE_DESC desc;
if (!test2d)
if (!Accel2D)
{
return Super::WipeStartScreen(type);
}
@ -202,7 +200,7 @@ bool D3DFB::WipeStartScreen(int type)
void D3DFB::WipeEndScreen()
{
if (!test2d)
if (!Accel2D)
{
Super::WipeEndScreen();
return;
@ -252,7 +250,7 @@ void D3DFB::WipeEndScreen()
bool D3DFB::WipeDo(int ticks)
{
if (!test2d)
if (!Accel2D)
{
return Super::WipeDo(ticks);
}
@ -323,7 +321,7 @@ void D3DFB::WipeCleanup()
}
FinalWipeScreen = NULL;
GatheringWipeScreen = false;
if (!test2d)
if (!Accel2D)
{
Super::WipeCleanup();
return;