mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-21 05:07:02 +00:00
Don't try and fetch the number of mips for a TEXTURE_BUFFER. Refs #285
This commit is contained in:
1 parent
475021b676
commit
9551211f73
1 file changed
+5
-2
@@ -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