]> git.tdb.fi Git - libs/gl.git/commit
Add validation for mapping buffers
authorMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 12:49:56 +0000 (14:49 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 13:07:00 +0000 (15:07 +0200)
commit6c5c2bcbd4025cba36f48f6f326466351f4f2971
treea29901228257c70757ffc49a82ebfce01adc3bbc
parent6080120777fdf7b6e1184288eff9d205ca7ebf5f
Add validation for mapping buffers

On Vulkan static buffers will be stored on non-host-visible memory and
can't be mapped.  Already-mapped buffers also can't be mapped.
source/backends/opengl/buffer_backend.cpp
source/backends/opengl/buffer_backend.h
source/core/buffer.cpp
source/core/buffer.h