[Bf-blender-cvs] [a6bb564] master: Another crappy mistake in VBO code.

Antony Riakiotakis noreply at git.blender.org
Wed Dec 3 20:20:18 CET 2014


Commit: a6bb564c99a29f9bf81a7b6a60e41808cf231faf
Author: Antony Riakiotakis
Date:   Wed Dec 3 20:20:04 2014 +0100
Branches: master
https://developer.blender.org/rBa6bb564c99a29f9bf81a7b6a60e41808cf231faf

Another crappy mistake in VBO code.

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

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

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

diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index 9a67e6d..8ac629d 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -614,7 +614,7 @@ static GPUBuffer *gpu_buffer_setup(DerivedMesh *dm, GPUDrawObject *object,
 	int *mat_orig_to_new;
 	int *cur_index_per_mat;
 	int i;
-	bool use_VBOs = (GLEW_ARB_vertex_buffer_object == 1) && !(U.gameflags & USER_DISABLE_VBO);
+	bool use_VBOs = (GLEW_ARB_vertex_buffer_object) && !(U.gameflags & USER_DISABLE_VBO);
 	GLboolean uploaded;
 
 	pool = gpu_get_global_buffer_pool();




More information about the Bf-blender-cvs mailing list