[Bf-blender-cvs] [d0c418b10a1] master: Cleanup: redundant casts

Campbell Barton noreply at git.blender.org
Wed Apr 3 23:20:03 CEST 2019


Commit: d0c418b10a1a3ae5667738153fcd41d4c2c54ded
Author: Campbell Barton
Date:   Thu Apr 4 08:15:26 2019 +1100
Branches: master
https://developer.blender.org/rBd0c418b10a1a3ae5667738153fcd41d4c2c54ded

Cleanup: redundant casts

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

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 9f90ac4fd6c..29fc5478072 100644
--- a/source/blender/draw/intern/draw_cache_impl_displist.c
+++ b/source/blender/draw/intern/draw_cache_impl_displist.c
@@ -311,8 +311,8 @@ void DRW_displist_indexbuf_create_lines_in_order(ListBase *lb, GPUIndexBuf *ibo)
 	int ofs = 0;
 	for (const DispList *dl = lb->first; dl; dl = dl->next) {
 		displist_indexbufbuilder_set(
-		        (SetTriIndicesFn *)set_overlay_wires_tri_indices,
-		        (SetTriIndicesFn *)set_overlay_wires_quad_tri_indices,
+		        set_overlay_wires_tri_indices,
+		        set_overlay_wires_quad_tri_indices,
 		        &elb, dl, ofs);
 		ofs += dl_vert_len(dl);
 	}



More information about the Bf-blender-cvs mailing list