mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
gl: initialise namespace of images
Images[i].res.namespace was left set to eResUnknown, causing the image not to be found in GLResourceManager::GetID when populating the renderstate view. This would result in images being incorrectly shown as unbound.
This commit is contained in:
committed by
Baldur Karlsson
parent
90f9d02ddc
commit
00823dac59
@@ -436,6 +436,8 @@ GLRenderState::GLRenderState(const GLHookSet *funcs) : m_Real(funcs)
|
||||
TransformFeedback[i].res.Namespace = eResBuffer;
|
||||
for(GLuint i = 0; i < (GLuint)ARRAY_COUNT(UniformBinding); i++)
|
||||
UniformBinding[i].res.Namespace = eResBuffer;
|
||||
for(GLuint i = 0; i < (GLuint)ARRAY_COUNT(Images); i++)
|
||||
Images[i].res.Namespace = eResTexture;
|
||||
|
||||
ReadFBO.Namespace = DrawFBO.Namespace = eResFramebuffer;
|
||||
}
|
||||
@@ -2098,4 +2100,4 @@ void DoSerialise(SerialiserType &ser, GLRenderState &el)
|
||||
}
|
||||
}
|
||||
|
||||
INSTANTIATE_SERIALISE_TYPE(GLRenderState);
|
||||
INSTANTIATE_SERIALISE_TYPE(GLRenderState);
|
||||
|
||||
Reference in New Issue
Block a user