mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-20 05:26:42 +00:00
Don't error about textures that aren't complete anyway
This commit is contained in:
@@ -432,17 +432,17 @@ void GLReplay::CacheTexture(ResourceId id)
|
||||
gl.glGetTextureLevelParameterivEXT(res.resource.name, levelQueryType, 0, eGL_TEXTURE_DEPTH, &depth);
|
||||
gl.glGetTextureLevelParameterivEXT(res.resource.name, levelQueryType, 0, eGL_TEXTURE_SAMPLES, &samples);
|
||||
|
||||
if(res.width == 0)
|
||||
if(res.width == 0 && width > 0)
|
||||
{
|
||||
RDCWARN("TextureData::width didn't get filled out, setting at last minute");
|
||||
res.width = width;
|
||||
}
|
||||
if(res.height == 0)
|
||||
if(res.height == 0 && height > 0)
|
||||
{
|
||||
RDCWARN("TextureData::height didn't get filled out, setting at last minute");
|
||||
res.height = height;
|
||||
}
|
||||
if(res.depth == 0)
|
||||
if(res.depth == 0 && depth > 0)
|
||||
{
|
||||
RDCWARN("TextureData::depth didn't get filled out, setting at last minute");
|
||||
res.depth = depth;
|
||||
|
||||
Reference in New Issue
Block a user