Fixed SpriteBatch:unbind

This commit is contained in:
Alex Szpakowski
2013-06-01 23:18:28 -03:00
parent da9675e424
commit 1482b13363
2 changed files with 24 additions and 1 deletions
@@ -106,6 +106,11 @@ public:
return usage;
}
bool isBound() const
{
return is_bound;
}
/**
* Map the VertexBuffer to client memory.
*
@@ -222,6 +227,11 @@ public:
void *elems;
};
protected:
// Whether the buffer is currently bound.
bool is_bound;
private:
// The size of the buffer, in bytes.