This commit is contained in:
wheremyfoodat 2023-07-08 22:06:53 +03:00 committed by GitHub
parent 2edc17367a
commit 075409130b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ void GPU::drawArrays() {
// Vertex attributes used as padding
// 12, 13, 14 and 15 are equivalent to 4, 8, 12 and 16 bytes of padding respectively
if (index >= 12) [[unlikely]] {
// Align attriubte address up to a 4 byte boundary
// Align attribute address up to a 4 byte boundary
attrAddress = (attrAddress + 3) & -4;
attrAddress += (index - 11) << 2;
continue;