pbo changes, trainingcard remarks

This commit is contained in:
milek7
2019-03-31 14:02:43 +02:00
parent a8a0cbb9b3
commit 891fe7ddee
6 changed files with 23 additions and 7 deletions

View File

@@ -49,3 +49,16 @@ bool gl::pbo::is_busy()
return true;
}
void* gl::pbo::map(GLuint mode, targets target)
{
bind(target);
return glMapBuffer(buffer::glenum_target(target), mode);
}
void gl::pbo::unmap(targets target)
{
bind(target);
glUnmapBuffer(buffer::glenum_target(target));
sync.emplace();
}