Print better error messages for failures to save textures to disk

This commit is contained in:
baldurk
2017-06-02 17:59:57 +01:00
parent 922263df83
commit fdf04cae39
5 changed files with 43 additions and 0 deletions
+3
View File
@@ -694,7 +694,10 @@ bool write_dds_to_file(FILE *f, const dds_data &data)
headerDXT10.arraySize = data.slices;
if(headerDXT10.dxgiFormat == DXGI_FORMAT_UNKNOWN)
{
RDCERR("Couldn't convert resource format to DXGI format");
return false;
}
if(data.cubemap)
{