mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-01 03:28:36 +00:00
Don't try and bind a non-layered texture with a specific layer to an FBO
This commit is contained in:
1 parent
e83bb9d7e9
commit
f0d4547480
1 file changed
+8
-1
@@ -1878,11 +1878,18 @@ void GLResourceManager::Apply_InitialState(GLResource live, InitialContentData i
|
||||
obj, a.level);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if(details.curType == eGL_TEXTURE_CUBE_MAP_ARRAY ||
|
||||
details.curType == eGL_TEXTURE_1D_ARRAY ||
|
||||
details.curType == eGL_TEXTURE_2D_ARRAY)
|
||||
{
|
||||
gl.glFramebufferTextureLayer(eGL_DRAW_FRAMEBUFFER, data->attachmentNames[i], obj,
|
||||
a.level, a.layer);
|
||||
}
|
||||
else
|
||||
{
|
||||
RDCASSERT(a.layer == 0);
|
||||
gl.glNamedFramebufferTextureEXT(live.name, data->attachmentNames[i], obj, a.level);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user