Skip to content

Commit efc148f

Browse files
committed
Set depth for ThumbnailClass
1 parent bbc720c commit efc148f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ThumbnailClass::ThumbnailClass(const StringClass& filename)
9292
// Destination size will be the next power of two square from the larger width and height...
9393
Width=targa.Header.Width>>reduction_factor;
9494
Height=targa.Header.Height>>reduction_factor;
95-
unsigned depth;
95+
unsigned depth=1;
9696
TextureLoader::Validate_Texture_Size(Width,Height,depth);
9797
unsigned src_width=targa.Header.Width;
9898
unsigned src_height=targa.Header.Height;

0 commit comments

Comments
 (0)