diff options
author | Paul Lemire <paul.lemire.ecortex@kdab.com> | 2014-11-24 07:38:20 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-12-12 14:17:26 +0100 |
commit | c1d0e22c9d061f0fdbffed2e88da2961258b6cdd (patch) | |
tree | 614182fffebb0d97ae7517d748037bbf9ac11003 /src/render/io/uniformbuffer_p.h | |
parent | f5649ac15adbe42ab10496d8cfa296d475002360 (diff) |
UniformBuffer: update takes an offset
This will allow to properly use glBufferSubData to only update parts of the
buffer that have changed.
Change-Id: Ic4d30e4608de85c71f9650dd785a3c1b796e0ba4
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/io/uniformbuffer_p.h')
-rw-r--r-- | src/render/io/uniformbuffer_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/io/uniformbuffer_p.h b/src/render/io/uniformbuffer_p.h index 2cc2f0a64..62f6af1b1 100644 --- a/src/render/io/uniformbuffer_p.h +++ b/src/render/io/uniformbuffer_p.h @@ -61,7 +61,7 @@ public: void create(QGraphicsContext *ctx); void destroy(QGraphicsContext *ctx); void allocate(QGraphicsContext *ctx, uint size, bool dynamic = true); - void update(QGraphicsContext *ctx, const void *data, uint size); + void update(QGraphicsContext *ctx, const void *data, uint size, int offset = 0); void bindToUniformBlock(QGraphicsContext *ctx, int bindingPoint); inline GLuint bufferId() const { return m_bufferId; } |