Commit: 591caab731ace81f43e7af94938c31d744782e52
Author: Sergey Sharybin
Date:   Thu Oct 2 18:19:54 2014 +0200
Branches: master
https://developer.blender.org/rB591caab731ace81f43e7af94938c31d744782e52

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 5a32820..c9d33e5 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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to