Skip to content

Commit bfa6e67

Browse files
chore(ww3d2): Remove unused Validate_Device
1 parent 37a3509 commit bfa6e67

4 files changed

Lines changed: 0 additions & 24 deletions

File tree

Generals/Code/Libraries/Source/WWVegas/WW3D2/dx8wrapper.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -430,16 +430,6 @@ void DX8Wrapper::Set_Default_Global_Render_States()
430430
// Set dither mode here?
431431
}
432432

433-
//MW: I added this for 'Generals'.
434-
bool DX8Wrapper::Validate_Device()
435-
{ DWORD numPasses=0;
436-
HRESULT hRes;
437-
438-
hRes=_Get_D3D_Device8()->ValidateDevice(&numPasses);
439-
440-
return (hRes == D3D_OK);
441-
}
442-
443433
void DX8Wrapper::Invalidate_Cached_Render_States()
444434
{
445435
render_state_changed=0;

Generals/Code/Libraries/Source/WWVegas/WW3D2/dx8wrapper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ class DX8Wrapper
307307
static LightEnvironmentClass* Get_Light_Environment() { return Light_Environment; }
308308
static void Set_Fog(bool enable, const Vector3 &color, float start, float end);
309309

310-
static bool Validate_Device();
311-
312310
// Deferred
313311

314312
static void Set_Shader(const ShaderClass& shader);

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/dx8wrapper.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,6 @@ void DX8Wrapper::Set_Default_Global_Render_States()
435435
// Set dither mode here?
436436
}
437437

438-
//MW: I added this for 'Generals'.
439-
bool DX8Wrapper::Validate_Device()
440-
{ DWORD numPasses=0;
441-
HRESULT hRes;
442-
443-
hRes=_Get_D3D_Device8()->ValidateDevice(&numPasses);
444-
445-
return (hRes == D3D_OK);
446-
}
447-
448438
void DX8Wrapper::Invalidate_Cached_Render_States()
449439
{
450440
render_state_changed=0;

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/dx8wrapper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,6 @@ class DX8Wrapper
313313
static LightEnvironmentClass* Get_Light_Environment() { return Light_Environment; }
314314
static void Set_Fog(bool enable, const Vector3 &color, float start, float end);
315315

316-
static bool Validate_Device();
317-
318316
// Deferred
319317

320318
static void Set_Shader(const ShaderClass& shader);

0 commit comments

Comments
 (0)