diff options
Diffstat (limited to 'src/render/io/glbuffer.cpp')
-rw-r--r-- | src/render/io/glbuffer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/render/io/glbuffer.cpp b/src/render/io/glbuffer.cpp index 8e7636964..d059949db 100644 --- a/src/render/io/glbuffer.cpp +++ b/src/render/io/glbuffer.cpp @@ -133,7 +133,12 @@ void GLBuffer::update(GraphicsContext *ctx, const void *data, uint size, int off ctx->openGLContext()->functions()->glBufferSubData(m_lastTarget, offset, size, data); } -void GLBuffer::bindToUniformBlock(GraphicsContext *ctx, int bindingPoint) +void GLBuffer::bindBufferBase(GraphicsContext *ctx, int bindingPoint, GLBuffer::Type t) +{ + ctx->bindBufferBase(glBufferTypes[t], bindingPoint, m_bufferId); +} + +void GLBuffer::bindBufferBase(GraphicsContext *ctx, int bindingPoint) { ctx->bindBufferBase(m_lastTarget, bindingPoint, m_bufferId); } |