[Improvement] (...): Better handling for enabling/disabling attribute in VAO.

This commit is contained in:
BZLZHH
2025-11-01 21:42:05 +08:00
parent d652645346
commit 984ae97579
3 changed files with 9 additions and 3 deletions
@@ -23,6 +23,7 @@ namespace MobileGL::MG_Backend::DirectGLES {
}
for (const auto& attrib : currentVAOObject->GetAllAttributes()) {
if (!attrib.Enabled) return;
const auto& bufferObject = attrib.Buffer;
if (bufferObject) {
buffersToSync.push_back(bufferObject);