mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-17 04:57:09 +00:00
Don't divide per-face size for cubemaps by 6
This commit is contained in:
@@ -867,9 +867,6 @@ void GLResourceManager::PrepareTextureInitialContents(ResourceId liveid, Resourc
|
||||
{
|
||||
size_t size = GetCompressedByteSize(w, h, d, details.internalFormat, i);
|
||||
|
||||
if(details.curType == eGL_TEXTURE_CUBE_MAP)
|
||||
size /= 6;
|
||||
|
||||
byte *buf = new byte[size];
|
||||
|
||||
// read to CPU
|
||||
@@ -1215,9 +1212,6 @@ bool GLResourceManager::Serialise_InitialState(ResourceId resid, GLResource res)
|
||||
size_t size = GetCompressedByteSize(details.width, details.height, details.depth,
|
||||
details.internalFormat, i);
|
||||
|
||||
if(t == eGL_TEXTURE_CUBE_MAP)
|
||||
size /= 6;
|
||||
|
||||
byte *buf = new byte[size];
|
||||
|
||||
gl.glGetCompressedTextureImageEXT(tex, targets[trg], i, buf);
|
||||
|
||||
Reference in New Issue
Block a user