Existing code was unbinding any index/vertex buffers if they were found in the additional parameter list. This causes draw errors when a input parameter is also the bound index/vertex buffer as previous behaviour was unbinding them just before they are needed in a draw call. The unbinding doesnt seem to be needed (comment was about debug layers but testing on both NVIDIA and AMD shows no debug warnings) so was removed.
I also fixed an error in the animation code while I was at it.
Existing code was unbinding any index/vertex buffers if they were found in the additional parameter list. This causes draw errors when a input parameter is also the bound index/vertex buffer as previous behaviour was unbinding them just before they are needed in a draw call. The unbinding doesnt seem to be needed (comment was about debug layers but testing on both NVIDIA and AMD shows no debug warnings) so was removed.
I also fixed an error in the animation code while I was at it.