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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-01 16:11:57 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-01 17:49:52 +0300
commit399a27b2616bcf7dc50de7a27e513c8db6296329 (patch)
tree2e02e1d2f1827dc1369c1f542286d9d51114fa8a /intern/cycles/device/device.cpp
parentf45f2ac68732aae68cb13103795ba9303fa5da77 (diff)
Cycles: Code cleanup, spaces around keyword and brace
Diffstat (limited to 'intern/cycles/device/device.cpp')
-rw-r--r--intern/cycles/device/device.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp
index d69244a07bd..0a4802c2c90 100644
--- a/intern/cycles/device/device.cpp
+++ b/intern/cycles/device/device.cpp
@@ -94,7 +94,7 @@ void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int dx, int d
}
if(GLEW_VERSION_1_5) {
- if (!vertex_buffer)
+ if(!vertex_buffer)
glGenBuffers(1, &vertex_buffer);
glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer);
@@ -110,7 +110,7 @@ void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int dx, int d
vp = vbuffer;
}
- if (vp) {
+ if(vp) {
/* texture coordinate - vertex pair */
vp[0] = 0.0f;
vp[1] = 0.0f;
@@ -132,7 +132,7 @@ void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int dx, int d
vp[14] = dx;
vp[15] = (float)height + dy;
- if (vertex_buffer)
+ if(vertex_buffer)
glUnmapBuffer(GL_ARRAY_BUFFER);
}