mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't try and query for immutability or fill out mips on buffer textures
This commit is contained in:
@@ -1195,9 +1195,11 @@ bool GLResourceManager::Serialise_InitialState(ResourceId resid, GLResource res)
|
||||
|
||||
// this is only relevant for non-immutable textures though
|
||||
GLint immut = 0;
|
||||
gl.glGetTextureParameterivEXT(live, textype, eGL_TEXTURE_IMMUTABLE_FORMAT, &immut);
|
||||
|
||||
if(immut == 0)
|
||||
if(textype != eGL_TEXTURE_BUFFER)
|
||||
gl.glGetTextureParameterivEXT(live, textype, eGL_TEXTURE_IMMUTABLE_FORMAT, &immut);
|
||||
|
||||
if(textype != eGL_TEXTURE_BUFFER && immut == 0)
|
||||
{
|
||||
GLsizei w = (GLsizei)width;
|
||||
GLsizei h = (GLsizei)height;
|
||||
|
||||
Reference in New Issue
Block a user