Minor bug.

This commit is contained in:
Federico Ponchio 2004-10-15 17:42:27 +00:00
parent 2acaf1a503
commit 1002d536ff
1 changed files with 1 additions and 0 deletions

View File

@ -263,6 +263,7 @@ void PatchServer::Flush(unsigned int patch) {
bool PatchServer::FlushVbo(unsigned int patch) { bool PatchServer::FlushVbo(unsigned int patch) {
//TODO //TODO
//cerr << "Flushing vbo: " << patch << endl; //cerr << "Flushing vbo: " << patch << endl;
if(!vbos.size()) return false;
VboBuffer &buffer = vbos[patch]; VboBuffer &buffer = vbos[patch];
if(!buffer.index) return false; if(!buffer.index) return false;
glDeleteBuffersARB(1, &buffer.index); glDeleteBuffersARB(1, &buffer.index);