Cleanup: GPencil: Fix float double promotion

This commit is contained in:
Clément Foucault 2020-05-18 15:50:28 +02:00
parent 121b2c0424
commit 19413c4a82
Notes: blender-bot 2023-02-13 22:38:46 +01:00
Referenced by issue #77752, AMD Pro Driver crashes on ASAN build when switching to edit mode
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ static void gpencil_buffer_add_point(gpStrokeVert *verts,
vert->u_stroke = pt->uv_fac;
vert->stroke_id = gps->runtime.stroke_start;
vert->point_id = v;
vert->thickness = max_ff(0.0f, gps->thickness * pt->pressure) * (round_cap1 ? 1.0 : -1.0);
vert->thickness = max_ff(0.0f, gps->thickness * pt->pressure) * (round_cap1 ? 1.0f : -1.0f);
/* Tag endpoint material to -1 so they get discarded by vertex shader. */
vert->mat = (is_endpoint) ? -1 : (gps->mat_nr % GP_MATERIAL_BUFFER_LEN);