Fix mapping gfx::buffer
This commit is contained in:
parent
0836cf00a6
commit
de5c0a3371
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ namespace psemek::gfx
|
|||
return std::static_pointer_cast<T[]>(p);
|
||||
|
||||
bind();
|
||||
std::shared_ptr<T[]> p(reinterpret_cast<T *>(gl::MapBufferRange(Target, 0, size_, gl::WRITE_ONLY)), [this](T *){
|
||||
std::shared_ptr<T[]> p(reinterpret_cast<T *>(gl::MapBufferRange(Target, 0, size_, gl::MAP_WRITE_BIT)), [this](T *){
|
||||
bind();
|
||||
gl::UnmapBuffer(Target);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue