File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Generals/Code/Libraries/Source/WWVegas/WW3D2 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments