Skip to content

Commit fc44175

Browse files
Additional commented out code cleanup
1 parent 2fecf43 commit fc44175

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,10 +1350,6 @@ bool DX8Wrapper::Registry_Load_Render_Device( const char * sub_key, bool resize_
13501350
TextureBitDepth=16;
13511351
}
13521352

1353-
1354-
// _RenderDeviceDescriptionTable.
1355-
1356-
13571353
if ( Set_Render_Device( name, width,height,depth,windowed, resize_window ) != true) {
13581354
if (depth==16) depth=32;
13591355
else depth=16;
@@ -3043,8 +3039,6 @@ void DX8Wrapper::Set_Light(unsigned index,const LightClass &light)
30433039
void DX8Wrapper::Set_Light_Environment(LightEnvironmentClass* light_env)
30443040
{
30453041
// Shader light environment support *
3046-
// if (Light_Environment && light_env && (*Light_Environment)==(*light_env)) return;
3047-
30483042
Light_Environment=light_env;
30493043

30503044
if (light_env)

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,10 +1350,6 @@ bool DX8Wrapper::Registry_Load_Render_Device( const char * sub_key, bool resize_
13501350
TextureBitDepth=16;
13511351
}
13521352

1353-
1354-
// _RenderDeviceDescriptionTable.
1355-
1356-
13571353
if ( Set_Render_Device( name, width,height,depth,windowed, resize_window ) != true) {
13581354
if (depth==16) depth=32;
13591355
else depth=16;
@@ -3043,8 +3039,6 @@ void DX8Wrapper::Set_Light(unsigned index,const LightClass &light)
30433039
void DX8Wrapper::Set_Light_Environment(LightEnvironmentClass* light_env)
30443040
{
30453041
// Shader light environment support *
3046-
// if (Light_Environment && light_env && (*Light_Environment)==(*light_env)) return;
3047-
30483042
Light_Environment=light_env;
30493043

30503044
if (light_env)

0 commit comments

Comments
 (0)