From 1b9db9911d9cbcb81d58277084b9c4c5daf84e8a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Apr 2014 13:46:34 +1000 Subject: Code cleanup: use bools also rename BLI_omp_thread_count -> BLI_system_thread_count_omp --- source/blender/gpu/intern/gpu_buffers.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '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 8bbd02ae9c9..194ea2b3b81 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -594,7 +594,7 @@ static GPUBuffer *gpu_buffer_setup(DerivedMesh *dm, GPUDrawObject *object, int *mat_orig_to_new; int *cur_index_per_mat; int i; - int success; + bool success; GLboolean uploaded; pool = gpu_get_global_buffer_pool(); @@ -1283,13 +1283,13 @@ void GPU_color_switch(int mode) /* return 1 if drawing should be done using old immediate-mode * code, 0 otherwise */ -int GPU_buffer_legacy(DerivedMesh *dm) +bool GPU_buffer_legacy(DerivedMesh *dm) { int test = (U.gameflags & USER_DISABLE_VBO); if (test) return 1; - if (dm->drawObject == 0) + if (dm->drawObject == NULL) dm->drawObject = GPU_drawobject_new(dm); return dm->drawObject->legacy; } -- cgit v1.2.3