mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-04 03:17:58 +00:00
Don't try to use cache for non-array textures in GetTextureData
This commit is contained in:
committed by
Baldur Karlsson
parent
4cd36280e8
commit
2901c3116a
@@ -2606,13 +2606,13 @@ byte *GLReplay::GetTextureData(ResourceId tex, uint32_t arrayIdx, uint32_t mip,
|
||||
{
|
||||
const vector<byte> &data = texDetails.compressedData[mip];
|
||||
if(data.size() == dataSize)
|
||||
memcpy(m_GetTexturePrevData[mip], data.data(), data.size());
|
||||
memcpy(ret, data.data(), data.size());
|
||||
else
|
||||
RDCERR("Different expected and stored compressed texture sizes!");
|
||||
}
|
||||
else
|
||||
{
|
||||
gl.glGetCompressedTexImage(target, mip, m_GetTexturePrevData[mip]);
|
||||
gl.glGetCompressedTexImage(target, mip, ret);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user