diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-17 07:46:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-17 10:04:28 +0400 |
commit | 1b9db9911d9cbcb81d58277084b9c4c5daf84e8a (patch) | |
tree | b840209b9de94432cb4e5d61567e46741870b504 /source/blender/gpu/GPU_buffers.h | |
parent | 4219e44f1d89cfd6ccdf3adc0fd73e22ae7b6df3 (diff) |
Code cleanup: use bools
also rename BLI_omp_thread_count -> BLI_system_thread_count_omp
Diffstat (limited to 'source/blender/gpu/GPU_buffers.h')
-rw-r--r-- | source/blender/gpu/GPU_buffers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/GPU_buffers.h b/source/blender/gpu/GPU_buffers.h index a1ab1451647..7ca1c878448 100644 --- a/source/blender/gpu/GPU_buffers.h +++ b/source/blender/gpu/GPU_buffers.h @@ -116,7 +116,7 @@ typedef struct GPUDrawObject { /* if there was a failure allocating some buffer, use old * rendering code */ - int legacy; + bool legacy; } GPUDrawObject; /* used for GLSL materials */ @@ -161,7 +161,7 @@ void GPU_buffer_draw_elements(GPUBuffer *elements, unsigned int mode, int start, void GPU_buffer_unbind(void); /* used to check whether to use the old (without buffers) code */ -int GPU_buffer_legacy(struct DerivedMesh *dm); +bool GPU_buffer_legacy(struct DerivedMesh *dm); /* Buffers for non-DerivedMesh drawing */ typedef struct GPU_PBVH_Buffers GPU_PBVH_Buffers; |