diff options
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 4 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_simple_shader.c | 2 |
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 { |