X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmesh.cpp;fp=source%2Fmesh.cpp;h=a8129d9bdc70ec426519f01289f667b8ba39f58f;hp=5f9c60d03919e2fe262d4bf848325eaee30dd6e5;hb=a40fc85277dba5c34402a0e703d038efd30cc57b;hpb=2fa1bb084e54af7134b44d3ee7512056e28de67e diff --git a/source/mesh.cpp b/source/mesh.cpp index 5f9c60d0..a8129d9b 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include "buffer.h" #include "error.h" #include "mesh.h" @@ -201,7 +200,7 @@ void Mesh::bind() const if(!vtx_setup) { unbind(); - vertices.apply(false); + vertices.apply(); } else if(set_current(this)) { @@ -290,9 +289,6 @@ Mesh::AsyncLoader::AsyncLoader(Mesh &m, IO::Seekable &i): index_updater(0), phase(0) { - // Make sure the extension is initialized in the rendering thread. - (void)(bool)NV_primitive_restart; - mesh.disallow_rendering = true; if(mesh.defer_buffers) mesh.create_buffers();