X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fopengl%2Funiforms-gl.cc;fp=src%2Fopengl%2Funiforms-gl.cc;h=697a0043830411689042060256d3be1246226117;hp=c4d82d269111e784b91ade30d9f0d98269526c38;hb=86c912d603be75ac8b2fdb2229f1696e9c0c01d9;hpb=e04bbfa8eb50d10fc87c3cbd6667de5de767eaa7 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; }