Fix 100% crash viewing DDS files directly

This commit is contained in:
baldurk
2015-07-20 18:54:40 +02:00
parent 2b0bc2abe2
commit 3e9f47f0f3
+2 -2
View File
@@ -398,12 +398,12 @@ void ImageViewer::RefreshFile()
return;
}
dds_data read_data;
dds_data read_data = {0};
if(dds)
{
FileIO::fseek64(f, 0, SEEK_SET);
dds_data read_data = load_dds_from_file(f);
read_data = load_dds_from_file(f);
if(read_data.subdata == NULL)
{