[Bf-blender-cvs] [7f3bab0] blender-v2.72-release: Fix for wrong bit mask magic happening in gpu_update_lamps_shadows()

Sergey Sharybin noreply at git.blender.org
Fri Oct 3 15:24:54 CEST 2014


Commit: 7f3bab097aad3e87178f536d8de0634626705bba
Author: Sergey Sharybin
Date:   Thu Oct 2 18:19:54 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rB7f3bab097aad3e87178f536d8de0634626705bba

Fix for wrong bit mask magic happening in gpu_update_lamps_shadows()

===================================================================

M	source/blender/editors/space_view3d/view3d_draw.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index a59df5b..aaaa883 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -2481,7 +2481,7 @@ static void gpu_update_lamps_shadows(Scene *scene, View3D *v3d)
 		
 		v3d->drawtype = OB_SOLID;
 		v3d->lay &= GPU_lamp_shadow_layer(shadow->lamp);
-		v3d->flag2 &= ~V3D_SOLID_TEX | V3D_SHOW_SOLID_MATCAP;
+		v3d->flag2 &= ~(V3D_SOLID_TEX | V3D_SHOW_SOLID_MATCAP);
 		v3d->flag2 |= V3D_RENDER_OVERRIDE | V3D_RENDER_SHADOW;
 		
 		GPU_lamp_shadow_buffer_bind(shadow->lamp, viewmat, &winsize, winmat);




More information about the Bf-blender-cvs mailing list