mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-18 04:26:49 +00:00
Don't try and fetch the number of mips for a TEXTURE_BUFFER. Refs #285
This commit is contained in:
@@ -986,8 +986,11 @@ bool GLResourceManager::Serialise_InitialState(ResourceId resid, GLResource res)
|
||||
gl.glPixelStorei(eGL_PACK_SKIP_IMAGES, 0);
|
||||
gl.glPixelStorei(eGL_PACK_ALIGNMENT, 1);
|
||||
|
||||
int imgmips =
|
||||
GetNumMips(gl, details.curType, tex, details.width, details.height, details.depth);
|
||||
int imgmips = 1;
|
||||
|
||||
if(details.curType != eGL_TEXTURE_BUFFER)
|
||||
imgmips =
|
||||
GetNumMips(gl, details.curType, tex, details.width, details.height, details.depth);
|
||||
|
||||
TextureStateInitialData *state = (TextureStateInitialData *)GetInitialContents(Id).blob;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user