diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-05 03:45:23 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-06 08:18:12 +0300 |
commit | c2f5cd8f6454bf8256a39a5fc9cb075311e25c58 (patch) | |
tree | c0c9f803f810c2be81c9b302d814ac4989a559ed /source/blender/gpu/intern/gpu_framebuffer.c | |
parent | 957b408458140d1cfc72395d62189918bac5b5c7 (diff) |
Gawain: add VertexBuffer prefix to functions
See intern/gawain for the API change. Other files are updated to use the new names.
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c index c6a98d01c02..afc04ac8626 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.c +++ b/source/blender/gpu/intern/gpu_framebuffer.c @@ -398,10 +398,12 @@ void GPU_framebuffer_blur( VertexBuffer_allocate_data(&vbo, 36); for (int j = 0; j < 3; ++j) { - setAttrib(&vbo, uvs, i, fullscreenuvs[j]); setAttrib(&vbo, pos, i++, fullscreencos[j]); + VertexBuffer_set_attrib(&vbo, uvs, i, fullscreenuvs[j]); + VertexBuffer_set_attrib(&vbo, pos, i++, fullscreencos[j]); } for (int j = 1; j < 4; ++j) { - setAttrib(&vbo, uvs, i, fullscreenuvs[j]); setAttrib(&vbo, pos, i++, fullscreencos[j]); + VertexBuffer_set_attrib(&vbo, uvs, i, fullscreenuvs[j]); + VertexBuffer_set_attrib(&vbo, pos, i++, fullscreencos[j]); } Batch_init(&batch, GL_TRIANGLES, &vbo, NULL); |