From de9b10352409d7522a7fd6675d051904e2cf7963 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sat, 13 Sep 2008 16:33:28 +0000 Subject: [PATCH] reversion git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@517 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp index 4e170bf6aa..d665f25482 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexLoader.cpp @@ -1010,12 +1010,6 @@ 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(); @@ -1120,7 +1114,6 @@ void VertexManager::Flush() int offset = 0; vector< pair >::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;