Skip to content

Commit

Permalink
(STB Truetype) Try to silence potential uninitialized reference to wi…
Browse files Browse the repository at this point in the history
…nding_lengths

variable
  • Loading branch information
inactive123 committed Dec 24, 2017
1 parent 2e1e2cb commit 6664f8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deps/stb/stb_truetype.h
Original file line number Diff line number Diff line change
Expand Up @@ -2428,8 +2428,9 @@ STBTT_DEF void stbtt_Rasterize(stbtt__bitmap *result, float flatness_in_pixels,
stbtt_vertex *vertices, int num_verts, float scale_x, float scale_y,
float shift_x, float shift_y, int x_off, int y_off, int invert, void *userdata)
{
float scale = scale_x > scale_y ? scale_y : scale_x;
int winding_count, *winding_lengths;
float scale = scale_x > scale_y ? scale_y : scale_x;
int winding_count = 0;
int *winding_lengths = NULL;
stbtt__point *windings = stbtt_FlattenCurves(vertices, num_verts, flatness_in_pixels / scale, &winding_lengths, &winding_count, userdata);
if (windings)
{
Expand Down

0 comments on commit 6664f8a

Please sign in to comment.