Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Comment thread
xezon marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ void TextureLoadTaskClass::Begin_Texture_Load()
DDSFileClass dds_file(Texture->Get_Full_Path(),Get_Reduction());
if (dds_file.Is_Available()) {
// Destination size will be the next power of two square from the larger width and height...
unsigned width, height, depth;
unsigned width=0, height=0, depth=1;
width=dds_file.Get_Width(0);
height=dds_file.Get_Height(0);
TextureLoader::Validate_Texture_Size(width,height,depth);
Expand Down Expand Up @@ -1120,7 +1120,7 @@ void TextureLoadTaskClass::Begin_Texture_Load()
}

// Destination size will be the next power of two square from the larger width and height...
unsigned width=targa.Header.Width, height=targa.Header.Height, depth;
unsigned width=targa.Header.Width, height=targa.Header.Height, depth=1;
int ReductionFactor=Get_Reduction();
int MipLevels=0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ThumbnailClass::ThumbnailClass(const StringClass& filename)
// Destination size will be the next power of two square from the larger width and height...
Width=targa.Header.Width>>reduction_factor;
Height=targa.Header.Height>>reduction_factor;
unsigned depth;
unsigned depth=1;
TextureLoader::Validate_Texture_Size(Width,Height,depth);
unsigned src_width=targa.Header.Width;
unsigned src_height=targa.Header.Height;
Expand Down
Loading