mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Move VertexBuffer::Bind implementation to header to hint inlining
This commit is contained in:
@@ -160,12 +160,15 @@ namespace opengl
|
||||
/**
|
||||
* Bind a VertexBuffer.
|
||||
*/
|
||||
Bind(VertexBuffer &buf);
|
||||
Bind(VertexBuffer &buf)
|
||||
: buf(buf)
|
||||
{ buf.bind(); }
|
||||
|
||||
/**
|
||||
* Unbinds a VertexBuffer.
|
||||
*/
|
||||
~Bind();
|
||||
~Bind()
|
||||
{ buf.unbind(); }
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user