Skip to content

Commit bbc720c

Browse files
committed
Set depth to 1
1 parent e392b99 commit bbc720c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ void TextureLoadTaskClass::Begin_Texture_Load()
10461046
DDSFileClass dds_file(Texture->Get_Full_Path(),Get_Reduction());
10471047
if (dds_file.Is_Available()) {
10481048
// Destination size will be the next power of two square from the larger width and height...
1049-
unsigned width=0, height=0, depth=0; // Depth is not used.
1049+
unsigned width=0, height=0, depth=1;
10501050
width=dds_file.Get_Width(0);
10511051
height=dds_file.Get_Height(0);
10521052
TextureLoader::Validate_Texture_Size(width,height,depth);
@@ -1120,7 +1120,7 @@ void TextureLoadTaskClass::Begin_Texture_Load()
11201120
}
11211121

11221122
// Destination size will be the next power of two square from the larger width and height...
1123-
unsigned width=targa.Header.Width, height=targa.Header.Height, depth=0; // Depth is not used.
1123+
unsigned width=targa.Header.Width, height=targa.Header.Height, depth=1;
11241124
int ReductionFactor=Get_Reduction();
11251125
int MipLevels=0;
11261126

0 commit comments

Comments
 (0)