I've been having some issues when restarting BGFX using bgfx::shutdown() and bgfx::init(). It seems that some vertex attributes are disabled when they shouldn't be. I think this is because the following static variables are not reset:
s_currentlyEnabledVertexAttribArrays
s_vertexAttribArraysPendingDisable
s_vertexAttribArraysPendingEnable
This change just resets these back to zero when initializing.
I've been having some issues when restarting BGFX using
bgfx::shutdown()
andbgfx::init()
. It seems that some vertex attributes are disabled when they shouldn't be. I think this is because the following static variables are not reset:This change just resets these back to zero when initializing.