mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
gl: Memoize the bound range for a buffer
This commit is contained in:
parent
3ef1eb8529
commit
4cf7b7022e
2 changed files with 6 additions and 0 deletions
|
|
@ -146,11 +146,13 @@ namespace gl
|
|||
|
||||
void buffer::bind_range(u32 index, u32 offset, u32 size) const
|
||||
{
|
||||
m_bound_range = { offset, size };
|
||||
glBindBufferRange(static_cast<GLenum>(current_target()), index, id(), offset, size);
|
||||
}
|
||||
|
||||
void buffer::bind_range(target target_, u32 index, u32 offset, u32 size) const
|
||||
{
|
||||
m_bound_range = { offset, size };
|
||||
glBindBufferRange(static_cast<GLenum>(target_), index, id(), offset, size);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue