mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-07 07:11:06 +00:00
Zero initialize read_dds_data before loading DDS file
This commit is contained in:
@@ -493,7 +493,7 @@ RDResult IMG_CreateReplayDevice(RDCFile *rdc, IReplayDriver **driver)
|
||||
{
|
||||
FileIO::fseek64(f, 0, SEEK_SET);
|
||||
StreamReader reader(f);
|
||||
read_dds_data read_data;
|
||||
read_dds_data read_data = {};
|
||||
RDResult res = load_dds_from_file(&reader, read_data);
|
||||
f = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user