gboisse / gfx

A minimalist and easy to use graphics API.
MIT License
498 stars 35 forks source link

Dont unbind index/vertex buffers. #103

Closed maoliver-amd closed 7 months ago

maoliver-amd commented 7 months ago

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.