]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't attempt to create buffers by default if they are not supported
authorMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:49:15 +0000 (17:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 15 Sep 2016 14:49:15 +0000 (17:49 +0300)
Rendering from client memory is a relic from the past but since the
change is rather trivial might as well support it.

source/mesh.cpp

index d0e71489f1f48a22c6de0d1b686648c452024d98..55d7fc0648df0920dfb93419344d6ee53fdd30a5 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/gl/extensions/arb_vertex_array_object.h>
+#include <msp/gl/extensions/arb_vertex_buffer_object.h>
 #include <msp/gl/extensions/arb_vertex_shader.h>
 #include <msp/gl/extensions/nv_primitive_restart.h>
 #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;