[Bf-blender-cvs] [7d50f168697] blender2.8: drawobject: use float instead of int in glLineWidth

Germano noreply at git.blender.org
Mon Dec 4 19:00:32 CET 2017


Commit: 7d50f1686975c699ccadfab0574dc25c3f0edf80
Author: Germano
Date:   Mon Dec 4 16:00:21 2017 -0200
Branches: blender2.8
https://developer.blender.org/rB7d50f1686975c699ccadfab0574dc25c3f0edf80

drawobject: use float instead of int in glLineWidth

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

M	source/blender/editors/space_view3d/drawobject.c

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

diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 0a1f7046a5d..08ef9cc21cb 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -9499,7 +9499,7 @@ static void bbs_mesh_wire(BMEditMesh *em, DerivedMesh *dm, int offset)
 
 	immBindBuiltinProgram(GPU_SHADER_3D_FLAT_COLOR_U32);
 
-	glLineWidth(1);
+	glLineWidth(1.0f);
 
 	immBeginAtMost(GWN_PRIM_LINES, imm_len);
 	dm->foreachMappedEdge(dm, bbs_mesh_wire__mapFunc, &data);
@@ -9510,7 +9510,7 @@ static void bbs_mesh_wire(BMEditMesh *em, DerivedMesh *dm, int offset)
 #else
 static void bbs_mesh_wire(BMEditMesh *em, DerivedMesh *UNUSED(dm), int offset)
 {
-	glLineWidth(1);
+	glLineWidth(1.0f);
 
 	Mesh *me = em->ob->data;
 	Gwn_Batch *batch = DRW_mesh_batch_cache_get_edges_with_select_id(me, offset);



More information about the Bf-blender-cvs mailing list