Minor bug.
This commit is contained in:
parent
2acaf1a503
commit
1002d536ff
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue