[Bf-blender-cvs] [4040f0a] GPU_data_request: Add missing stubs for buffer generation.

Antony Riakiotakis noreply at git.blender.org
Mon May 11 11:08:50 CEST 2015


Commit: 4040f0af0017409fad4912605527900ba6919173
Author: Antony Riakiotakis
Date:   Mon May 11 11:08:40 2015 +0200
Branches: GPU_data_request
https://developer.blender.org/rB4040f0af0017409fad4912605527900ba6919173

Add missing stubs for buffer generation.

===================================================================

M	source/blender/gpu/intern/gpux_vbo.c

===================================================================

diff --git a/source/blender/gpu/intern/gpux_vbo.c b/source/blender/gpu/intern/gpux_vbo.c
index 84d2697..e2cd9a7 100644
--- a/source/blender/gpu/intern/gpux_vbo.c
+++ b/source/blender/gpu/intern/gpux_vbo.c
@@ -616,3 +616,28 @@ unsigned GPUx_vertex_ct(const VertexBuffer *buff)
 {
 	return buff->vertex_ct;
 }
+
+
+GLuint buffer_id_alloc(void)
+{
+	GLuint id;
+	glGenBuffers(1, &id);
+	return id;
+}
+
+void buffer_id_free(GLuint buffer_id)
+{
+	glDeleteBuffers(1, &buffer_id);
+}
+
+GLuint vao_id_alloc(void)
+{
+	GLuint id;
+	glGenVertexArrays(1, &id);
+	return id;
+}
+
+void vao_id_free(GLuint vao_id)
+{
+	glDeleteVertexArrays(1, &vao_id);
+}




More information about the Bf-blender-cvs mailing list