diff --git a/renderdoc/common/dds_readwrite.cpp b/renderdoc/common/dds_readwrite.cpp index 9fe3e29f9..9ac892219 100644 --- a/renderdoc/common/dds_readwrite.cpp +++ b/renderdoc/common/dds_readwrite.cpp @@ -1131,7 +1131,7 @@ dds_data load_dds_from_file(StreamReader *reader) // pitch/rows are in blocks, not pixels, for block formats. if(blockFormat) { - numRows = RDCMAX(1U, numRows / 4); + numRows = RDCMAX(1U, (numRows + 3) / 4); uint32_t blockSize = (ret.format.type == ResourceFormatType::BC1 || ret.format.type == ResourceFormatType::BC4)