Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/intern/gpu_uniform_buffer.cc')
-rw-r--r--source/blender/gpu/intern/gpu_uniform_buffer.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/gpu/intern/gpu_uniform_buffer.cc b/source/blender/gpu/intern/gpu_uniform_buffer.cc
index 4926a5fa2dc..2dea98f03ca 100644
--- a/source/blender/gpu/intern/gpu_uniform_buffer.cc
+++ b/source/blender/gpu/intern/gpu_uniform_buffer.cc
@@ -198,7 +198,7 @@ GPUUniformBuf *GPU_uniformbuf_create_ex(size_t size, const void *data, const cha
if (data != NULL) {
ubo->update(data);
}
- return reinterpret_cast<GPUUniformBuf *>(ubo);
+ return wrap(ubo);
}
/**
@@ -222,27 +222,27 @@ GPUUniformBuf *GPU_uniformbuf_create_from_list(ListBase *inputs, const char *nam
UniformBuf *ubo = GPUBackend::get()->uniformbuf_alloc(buffer_size, name);
/* Defer data upload. */
ubo->attach_data(data);
- return reinterpret_cast<GPUUniformBuf *>(ubo);
+ return wrap(ubo);
}
void GPU_uniformbuf_free(GPUUniformBuf *ubo)
{
- delete reinterpret_cast<UniformBuf *>(ubo);
+ delete unwrap(ubo);
}
void GPU_uniformbuf_update(GPUUniformBuf *ubo, const void *data)
{
- reinterpret_cast<UniformBuf *>(ubo)->update(data);
+ unwrap(ubo)->update(data);
}
void GPU_uniformbuf_bind(GPUUniformBuf *ubo, int slot)
{
- reinterpret_cast<UniformBuf *>(ubo)->bind(slot);
+ unwrap(ubo)->bind(slot);
}
void GPU_uniformbuf_unbind(GPUUniformBuf *ubo)
{
- reinterpret_cast<UniformBuf *>(ubo)->unbind();
+ unwrap(ubo)->unbind();
}
void GPU_uniformbuf_unbind_all(void)