[Bf-blender-cvs] [5d9b50054c1] master: Cleanup: unused variable

Campbell Barton noreply at git.blender.org
Sat Mar 2 01:51:08 CET 2019


Commit: 5d9b50054c1fda1bd5875ded80548e567de53276
Author: Campbell Barton
Date:   Sat Mar 2 11:48:36 2019 +1100
Branches: master
https://developer.blender.org/rB5d9b50054c1fda1bd5875ded80548e567de53276

Cleanup: unused variable

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

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

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

diff --git a/source/blender/draw/intern/draw_cache_impl_displist.c b/source/blender/draw/intern/draw_cache_impl_displist.c
index 72b6991417e..b9555c5e54b 100644
--- a/source/blender/draw/intern/draw_cache_impl_displist.c
+++ b/source/blender/draw/intern/draw_cache_impl_displist.c
@@ -206,10 +206,10 @@ void DRW_displist_vertbuf_create_pos_and_nor(ListBase *lb, GPUVertBuf *vbo)
 void DRW_displist_vertbuf_create_wiredata(ListBase *lb, GPUVertBuf *vbo)
 {
 	static GPUVertFormat format = { 0 };
-	static struct { uint wd; } attr_id;
+	// static struct { uint wd; } attr_id;  /* UNUSED */
 	if (format.attr_len == 0) {
 		/* initialize vertex format */
-		attr_id.wd  = GPU_vertformat_attr_add(&format, "wd", GPU_COMP_U8,  1, GPU_FETCH_INT_TO_FLOAT_UNIT);
+		/* attr_id.wd = */ GPU_vertformat_attr_add(&format, "wd", GPU_COMP_U8, 1, GPU_FETCH_INT_TO_FLOAT_UNIT);
 	}
 
 	int vbo_len_used = curve_render_surface_vert_len_get(lb);



More information about the Bf-blender-cvs mailing list