diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-08-13 19:44:27 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-08-14 00:01:18 +0300 |
commit | efd44f8480b692e169155f5f35077a76969f6844 (patch) | |
tree | 48c80f74815935714ea0a2926755035367071a94 /source/blender/gpu/intern/gpu_uniformbuffer.c | |
parent | 77b39bbaa0c796b936f8691c1431f467d4f39981 (diff) |
Cleanup: GPU codegen: remove most of legacy code
A lot of code in codegen was used by previous GLSL system.
Now most of it is not used due to all the things being written from scratch
in 2.8 and we can clean most of it.
As a side not this make the system a bit less flexible (no support for
cubemaps, preview image, etc...) but can be extended again.
Diffstat (limited to 'source/blender/gpu/intern/gpu_uniformbuffer.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_uniformbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_uniformbuffer.c b/source/blender/gpu/intern/gpu_uniformbuffer.c index 3f5706c1f7b..82b82d622a4 100644 --- a/source/blender/gpu/intern/gpu_uniformbuffer.c +++ b/source/blender/gpu/intern/gpu_uniformbuffer.c @@ -159,7 +159,7 @@ GPUUniformBuffer *GPU_uniformbuffer_dynamic_create(ListBase *inputs, char err_ou float *offset = ubo->data; for (LinkData *link = inputs->first; link; link = link->next) { GPUInput *input = link->data; - memcpy(offset, input->dynamicvec, input->type * sizeof(float)); + memcpy(offset, input->vec, input->type * sizeof(float)); offset += get_padded_gpu_type(link); } |