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:
authorCampbell Barton <ideasman42@gmail.com>2014-04-17 07:46:34 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-17 10:04:28 +0400
commit1b9db9911d9cbcb81d58277084b9c4c5daf84e8a (patch)
treeb840209b9de94432cb4e5d61567e46741870b504 /source/blender/gpu/intern/gpu_buffers.c
parent4219e44f1d89cfd6ccdf3adc0fd73e22ae7b6df3 (diff)
Code cleanup: use bools
also rename BLI_omp_thread_count -> BLI_system_thread_count_omp
Diffstat (limited to 'source/blender/gpu/intern/gpu_buffers.c')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c6
1 files changed, 3 insertions, 3 deletions
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;
}