Commit c2045f73 authored by Christopher Tenter's avatar Christopher Tenter

implicitly bind vbo on upload()

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20226 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ff36020f
......@@ -542,8 +542,11 @@ void VertexBufferObject::del() {
void VertexBufferObject::upload(
GLsizeiptr size, const GLvoid* data, GLenum usage) {
if(!valid)
gen();
if (!valid)
gen();
bind();
glBufferDataARB(target, size, data, usage);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment