Support binding gfx::buffer via glBindBufferBase
This commit is contained in:
parent
09ecce5e6d
commit
a9cb71629e
1 changed files with 5 additions and 0 deletions
|
|
@ -57,6 +57,11 @@ namespace psemek::gfx
|
||||||
gl::BindBuffer(Target, id_);
|
gl::BindBuffer(Target, id_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void bind(GLuint index) const
|
||||||
|
{
|
||||||
|
gl::BindBufferBase(Target, index, id_);
|
||||||
|
}
|
||||||
|
|
||||||
void reset()
|
void reset()
|
||||||
{
|
{
|
||||||
if (id_)
|
if (id_)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue