mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Fix] (MG_Backend/DirectGLES): Always bind VBO before glVertexAttribPointer.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user