X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fopengl%2Funiforms-gl.cc;h=697a0043830411689042060256d3be1246226117;hb=9922a7c30b64d74b424cb5783b08497396d2365c;hp=c4d82d269111e784b91ade30d9f0d98269526c38;hpb=05d269a194496bcef85da78652b947f5bf1c9bcf;p=demo diff --git a/src/opengl/uniforms-gl.cc b/src/opengl/uniforms-gl.cc index c4d82d2..697a004 100644 --- a/src/opengl/uniforms-gl.cc +++ b/src/opengl/uniforms-gl.cc @@ -32,8 +32,10 @@ void UniformBufferGL::bind(int binding) const glBindBufferBase(GL_UNIFORM_BUFFER, binding, ubo); } -void UniformBufferGL::update(void *data) +bool UniformBufferGL::update(void *data) { glBindBuffer(GL_UNIFORM_BUFFER, ubo); glBufferSubData(GL_UNIFORM_BUFFER, 0, size, data); + + return true; }