X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.cpp;h=d1cb77f143c7a1ede2e5873fc1a21bb6c331d568;hb=26ff1dd4c645c9b8b5361f5f37c58f071789f026;hp=3e9e118ac52e6a9eb40b47345cce0f9692d9b140;hpb=fcd9e657d0c86cfa4c5bb951ccad2ff5f242863a;p=libs%2Fgl.git diff --git a/source/mesh.cpp b/source/mesh.cpp index 3e9e118a..d1cb77f1 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -31,6 +31,7 @@ void Mesh::init(ResourceManager *rm) vao_id = 0; defer_buffers = true; dirty = true; + disallow_rendering = false; winding = 0; if(rm) @@ -183,7 +184,7 @@ void Mesh::bind() const if(!vao_id) { unbind(); - vertices.apply(); + vertices.apply(false); } else if(set_current(this)) {