[Bf-blender-cvs] [591caab] master: Fix for wrong bit mask magic happening in gpu_update_lamps_shadows()
Sergey Sharybin
noreply at git.blender.org
Thu Oct 2 18:20:18 CEST 2014
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);
More information about the Bf-blender-cvs
mailing list