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;