]> git.tdb.fi Git - libs/gl.git/commitdiff
Also allocate a buffer when mapping it
authorMikko Rasa <tdb@tdb.fi>
Fri, 2 Apr 2021 19:36:38 +0000 (22:36 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 2 Apr 2021 19:36:38 +0000 (22:36 +0300)
source/core/buffer.cpp

index 56810b6f4ff12aa41f9c37b7812f5d4496187e7a..98625b813bdfd9a626d8be87f52e6a2d7db228d6 100644 (file)
@@ -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)