[Fix] (MG_Backend/DirectGLES): Always bind VBO before glVertexAttribPointer.

This commit is contained in:
BZLZHH
2026-02-03 02:38:50 +08:00
parent 42ad1634bf
commit 2fab6c5b0b
2 changed files with 3 additions and 4 deletions
@@ -29,7 +29,7 @@ namespace MobileGL {
void VertexArrayObject::EnableAttribute(Uint index) {
if (index >= MAX_VERTEX_ATTRIBS) return;
if (!m_attributes[index].Enabled) return;
if (m_attributes[index].Enabled) return;
m_attributes[index].Enabled = true;
BumpAttributeSwitchVersion(index);