diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-12-16 14:09:24 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-12-16 14:09:33 +0300 |
commit | 137f55724606e07f1cdc829c730fc0c061d7af21 (patch) | |
tree | 72665e62684288ce3e9b5e17b39f4247eaf33030 | |
parent | 72341537e872f2870e785d9fb8a24d2dbdd71471 (diff) |
Remove NULL checking variable after using it.
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 2ac2ca3bf05..dcde0e9585c 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -1420,11 +1420,9 @@ void *GPU_buffer_lock_stream(GPUBuffer *buffer) void GPU_buffer_unlock(GPUBuffer *buffer) { if (buffer->use_vbo) { - if (buffer) { - /* note: this operation can fail, could return - * an error code from this function? */ - glUnmapBufferARB(GL_ARRAY_BUFFER_ARB); - } + /* note: this operation can fail, could return + * an error code from this function? */ + glUnmapBufferARB(GL_ARRAY_BUFFER_ARB); glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0); } } |