From: Mikko Rasa Date: Thu, 15 Sep 2016 14:49:15 +0000 (+0300) Subject: Don't attempt to create buffers by default if they are not supported X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ecc365c5262f9fde0e50dbb451b33c9e5fcf9ecc;hp=6a7510a74193ad442bfe82d8377606c3cb66e6b2;p=libs%2Fgl.git Don't attempt to create buffers by default if they are not supported Rendering from client memory is a relic from the past but since the change is rather trivial might as well support it. --- diff --git a/source/mesh.cpp b/source/mesh.cpp index d0e71489..55d7fc06 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include "buffer.h" @@ -29,7 +30,7 @@ void Mesh::init(ResourceManager *rm) vbuf = 0; ibuf = 0; vao_id = 0; - defer_buffers = true; + defer_buffers = ARB_vertex_buffer_object; dirty = true; disallow_rendering = false; winding = 0;