File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Generals/Code/Libraries/Source/WWVegas/WW3D2 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1046,7 +1046,7 @@ void TextureLoadTaskClass::Begin_Texture_Load()
1046
1046
DDSFileClass dds_file (Texture->Get_Full_Path (),Get_Reduction ());
1047
1047
if (dds_file.Is_Available ()) {
1048
1048
// Destination size will be the next power of two square from the larger width and height...
1049
- unsigned width, height, depth;
1049
+ unsigned width= 0 , height= 0 , depth= 1 ;
1050
1050
width=dds_file.Get_Width (0 );
1051
1051
height=dds_file.Get_Height (0 );
1052
1052
TextureLoader::Validate_Texture_Size (width,height,depth);
@@ -1120,7 +1120,7 @@ void TextureLoadTaskClass::Begin_Texture_Load()
1120
1120
}
1121
1121
1122
1122
// 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;
1123
+ unsigned width=targa.Header .Width , height=targa.Header .Height , depth= 1 ;
1124
1124
int ReductionFactor=Get_Reduction ();
1125
1125
int MipLevels=0 ;
1126
1126
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ ThumbnailClass::ThumbnailClass(const StringClass& filename)
92
92
// Destination size will be the next power of two square from the larger width and height...
93
93
Width=targa.Header .Width >>reduction_factor;
94
94
Height=targa.Header .Height >>reduction_factor;
95
- unsigned depth;
95
+ unsigned depth= 1 ;
96
96
TextureLoader::Validate_Texture_Size (Width,Height,depth);
97
97
unsigned src_width=targa.Header .Width ;
98
98
unsigned src_height=targa.Header .Height ;
You can’t perform that action at this time.
0 commit comments