From: Mikko Rasa Date: Fri, 2 Apr 2021 19:36:38 +0000 (+0300) Subject: Also allocate a buffer when mapping it X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=1c2c36f1342df84ff195d8c58347c5e875590e0e Also allocate a buffer when mapping it --- diff --git a/source/core/buffer.cpp b/source/core/buffer.cpp index 56810b6f..98625b81 100644 --- a/source/core/buffer.cpp +++ b/source/core/buffer.cpp @@ -142,6 +142,7 @@ BufferRange *Buffer::create_range(unsigned s, unsigned o) void *Buffer::map() { + allocate(); if(ARB_map_buffer_range) { if(ARB_direct_state_access)