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