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>2013-05-11 05:06:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-11 05:06:01 +0400
commit359edc27d34c3446b682a4b7b777a841c275327a (patch)
tree736b8fcdbab077eacf35bfbd08706b64bdb0121a /source/blender/gpu
parent00014949c8a2e77e29d7ad690e20630dc4ebd1af (diff)
style cleanup
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_extensions.c4
-rw-r--r--source/blender/gpu/intern/gpu_simple_shader.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index 7909213e793..75041055c41 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -1145,7 +1145,7 @@ static void shader_print_errors(const char *task, char *log, const char *code)
static const char *gpu_shader_standard_extensions(void)
{
/* need this extensions for high quality bump mapping */
- if(GPU_bicubic_bump_support()) {
+ if (GPU_bicubic_bump_support()) {
return "#version 130\n"
"#extension GL_ARB_texture_query_lod: enable\n"
"#define BUMP_BICUBIC\n";
@@ -1157,7 +1157,7 @@ static const char *gpu_shader_standard_extensions(void)
static const char *gpu_shader_standard_defines(void)
{
/* some useful defines to detect GPU type */
- if(GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_ANY, GPU_DRIVER_ANY))
+ if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_ANY, GPU_DRIVER_ANY))
return "#define GPU_ATI\n";
else if(GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_ANY, GPU_DRIVER_ANY))
return "#define GPU_NVIDIA\n";
diff --git a/source/blender/gpu/intern/gpu_simple_shader.c b/source/blender/gpu/intern/gpu_simple_shader.c
index 88f768d6cf8..5fb723172ec 100644
--- a/source/blender/gpu/intern/gpu_simple_shader.c
+++ b/source/blender/gpu/intern/gpu_simple_shader.c
@@ -262,7 +262,7 @@ void GPU_simple_shader_light_set(int light_num, GPULightData *light)
glLightf(GL_LIGHT0+light_num, GL_SPOT_EXPONENT, light->spot_exponent);
GPU_MATERIAL_STATE.lights_enabled |= light_bit;
- if(light->position[3] == 0.0f)
+ if (light->position[3] == 0.0f)
GPU_MATERIAL_STATE.lights_directional |= light_bit;
}
else {