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:
David McFarland
2017-12-22 23:19:27 -04:00
committed by Baldur Karlsson
parent 90f9d02ddc
commit 00823dac59
+3 -1
View File
@@ -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);