[Bf-blender-cvs] [43d4ac5db64] temp-vr-draw-thread: Cleanup: Remove unnecessary call & var

Julian Eisel noreply at git.blender.org
Tue Aug 6 15:48:36 CEST 2019


Commit: 43d4ac5db64f3bcb9d9238485734d5a5ade90855
Author: Julian Eisel
Date:   Mon Aug 5 19:02:08 2019 +0200
Branches: temp-vr-draw-thread
https://developer.blender.org/rB43d4ac5db64f3bcb9d9238485734d5a5ade90855

Cleanup: Remove unnecessary call & var

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

M	source/blender/draw/intern/draw_common.c

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

diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c
index 44c9ccd8717..328c7fa903d 100644
--- a/source/blender/draw/intern/draw_common.c
+++ b/source/blender/draw/intern/draw_common.c
@@ -55,7 +55,6 @@ static struct GPUTexture *DRW_create_weight_colorramp_texture(void);
 void DRW_globals_update(void)
 {
   GlobalsUboStorage *gb = &G_draw.block;
-  float tmp[4];
 
   DRW_theme_color_get_4fv(TH_WIRE, gb->colorWire);
   DRW_theme_color_get_4fv(TH_WIRE_EDIT, gb->colorWireEdit);
@@ -129,7 +128,6 @@ void DRW_globals_update(void)
   DRW_theme_color_get_4fv(TH_CFRAME, gb->colorCurrentFrame);
 
   /* Grid */
-  DRW_theme_color_get_4fv(TH_GRID, tmp);
   DRW_theme_color_shade_get_4fv(TH_GRID, 10, gb->colorGrid);
   /* emphasise division lines lighter instead of darker, if background is darker than grid */
   DRW_theme_color_shade_get_4fv(



More information about the Bf-blender-cvs mailing list