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>2015-02-11 10:38:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-02-11 10:39:28 +0300
commitd4934f8f6d8d2da457adb6dd32047eb1627459a0 (patch)
tree246012077cd959563ca372767c319dbbc3345f50 /source/blender/gpu/intern/gpu_buffers.c
parent387d91829d787ac96afbb2b3f86899e0e3346222 (diff)
cleanup: style/indentation
Diffstat (limited to 'source/blender/gpu/intern/gpu_buffers.c')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index d1102b03e9a..56167d466f1 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -247,8 +247,9 @@ static GPUBuffer *gpu_buffer_alloc_intern(int size, bool use_VBO)
bufsize = pool->buffers[i]->size;
/* only return a buffer that matches the VBO preference */
- if (pool->buffers[i]->use_vbo != use_VBO)
+ if (pool->buffers[i]->use_vbo != use_VBO) {
continue;
+ }
/* check for an exact size match */
if (bufsize == size) {
@@ -653,8 +654,8 @@ static GPUBuffer *gpu_buffer_setup(DerivedMesh *dm, GPUDrawObject *object,
/* attempt to map the buffer */
if (!(varray = glMapBufferARB(target, GL_WRITE_ONLY_ARB))) {
- buffer = gpu_try_realloc(pool, buffer, size, true);
-
+ buffer = gpu_try_realloc(pool, buffer, size, true);
+
/* allocation still failed; fall back
* to legacy mode */
if (!buffer) {