[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
+2 -3
View File
@@ -264,9 +264,8 @@ namespace MobileGL::MG_Backend::DirectGLES {
m_syncedAttributeVersions[attribIndex].BufferVersion;
if (!needsSyncFormat && !needsSyncBuffer) continue;
if (needsSyncBuffer) {
SyncAttributeBuffer(attribIndex, attrib);
}
SyncAttributeBuffer(attribIndex,
attrib); // Always need to bind VBO before setting glVertexAttribPointer
if (needsSyncFormat) {
MG_External::GLES::glVertexAttribDivisor(attribIndex, attrib.Divisor);