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_element.c')
-rw-r--r--source/blender/gpu/intern/gpu_element.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_element.c b/source/blender/gpu/intern/gpu_element.c
index 9abfed2db05..901e09443d1 100644
--- a/source/blender/gpu/intern/gpu_element.c
+++ b/source/blender/gpu/intern/gpu_element.c
@@ -30,7 +30,8 @@
*/
#include "GPU_element.h"
-#include "GPU_buffer_id.h"
+
+#include "gpu_context_private.h"
#include <stdlib.h>
@@ -279,7 +280,7 @@ void GPU_indexbuf_build_in_place(GPUIndexBufBuilder *builder, GPUIndexBuf *elem)
#endif
if (elem->vbo_id == 0) {
- elem->vbo_id = GPU_buf_id_alloc();
+ elem->vbo_id = GPU_buf_alloc();
}
/* send data to GPU */
/* GL_ELEMENT_ARRAY_BUFFER changes the state of the last VAO bound,
@@ -302,7 +303,7 @@ void GPU_indexbuf_use(GPUIndexBuf *elem)
void GPU_indexbuf_discard(GPUIndexBuf *elem)
{
if (elem->vbo_id) {
- GPU_buf_id_free(elem->vbo_id);
+ GPU_buf_free(elem->vbo_id);
}
free(elem);
}