Influence-Engine / Influence

Influence Engine - 2D and 3D game engine
MIT License
2 stars 1 forks source link

fix: Replace vertexCount with indexCount in DrawElements #1

Closed leAdmin666 closed 1 month ago

leAdmin666 commented 1 month ago

Refactored the DrawElements function to use indexCount instead of vertexCount for drawing operations. This change ensures that the correct number of indices is used for indexed drawing, which aligns with the intended usage of DrawElements. Using vertexCount was causing incorrect rendering results due to mismatched element counts.

image

image

realQuartzi commented 1 month ago

Looks good! Nice catch, all my bad lol