From ecc365c5262f9fde0e50dbb451b33c9e5fcf9ecc Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 15 Sep 2016 17:49:15 +0300 Subject: [PATCH] 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. --- source/mesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.43.0