diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-24 16:02:09 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-24 16:02:09 +0000 |
commit | a704318f507f486ac04834747eb209d0a9410702 (patch) | |
tree | b6f3f6df4b285be0b9c6e91c0486271daf0bb6ee /src/model/vertexarray.cc | |
parent | c2a6f7c2ee6245109c897ee23b093b5277a30594 (diff) |
keepalive optimizations, r_lights engine variable, OpenGL VBO support
Diffstat (limited to 'src/model/vertexarray.cc')
-rw-r--r-- | src/model/vertexarray.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/model/vertexarray.cc b/src/model/vertexarray.cc index a559892..d06b976 100644 --- a/src/model/vertexarray.cc +++ b/src/model/vertexarray.cc @@ -40,6 +40,7 @@ VertexArray::~VertexArray() void VertexArray::clear() { + vertex_dirty = true; vertex_index = 0; vertex_overflow = false; @@ -127,6 +128,8 @@ size_t VertexArray::add_vertex(math::Vector3f const &v, math::Vector3f const &n, } vertex_index += 8; + + vertex_dirty = true; return 1; } |