Restructure some internal vertex buffer binding code to be closer to how graphics APIs actually behave.

This commit is contained in:
Alex Szpakowski
2019-08-25 16:50:15 -03:00
parent 932068e777
commit 55d4dc0f9e
12 changed files with 117 additions and 92 deletions
+2 -2
View File
@@ -1122,7 +1122,7 @@ void Graphics::flushStreamDraws()
return;
Attributes attributes;
Buffers buffers;
BufferBindings buffers;
size_t usedsizes[3] = {0, 0, 0};
@@ -1140,7 +1140,7 @@ void Graphics::flushStreamDraws()
sbstate.vbMap[i] = StreamBuffer::MapInfo();
}
if (attributes.enablebits == 0)
if (attributes.enableBits == 0)
return;
Colorf nc = getColor();