mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
some patches done by F|res & OmegaDox
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@512 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -1010,6 +1010,12 @@ void VertexManager::Flush()
|
||||
|
||||
GL_REPORT_ERRORD();
|
||||
|
||||
s64 size = (s64)s_pCurBufferPointer-(s64)s_pBaseBufferPointer;
|
||||
if (size < 0)
|
||||
{
|
||||
int t = 0;
|
||||
}
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, s_vboBuffers[s_nCurVBOIndex]);
|
||||
glBufferData(GL_ARRAY_BUFFER, s_pCurBufferPointer-s_pBaseBufferPointer, s_pBaseBufferPointer, GL_STREAM_DRAW);
|
||||
GL_REPORT_ERRORD();
|
||||
@ -1114,6 +1120,7 @@ void VertexManager::Flush()
|
||||
|
||||
int offset = 0;
|
||||
vector< pair<int, int> >::iterator it;
|
||||
size_t vecSize = s_vStoredPrimitives.size();
|
||||
for (it = s_vStoredPrimitives.begin(); it != s_vStoredPrimitives.end(); ++it) {
|
||||
glDrawArrays(it->first, offset, it->second);
|
||||
offset += it->second;
|
||||
|
Reference in New Issue
Block a user