Skip to content

Commit

Permalink
[spline/bezier]minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xebra committed Oct 7, 2018
1 parent 3c2837b commit b1289cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPU/Common/SplineCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ void DrawEngineCommon::SubmitSpline(const void *control_points, const void *indi
}

// Make an array of pointers to the control points, to get rid of indices.
SimpleVertex **points = (SimpleVertex **)managedBuf.Allocate(sizeof(SimpleVertex *) * count_u * count_v);
const SimpleVertex **points = (const SimpleVertex **)managedBuf.Allocate(sizeof(SimpleVertex *) * count_u * count_v);
for (int idx = 0; idx < count_u * count_v; idx++)
points[idx] = simplified_control_points + (indices ? idxConv.convert(idx) : idx);

Expand Down Expand Up @@ -1021,7 +1021,7 @@ void DrawEngineCommon::SubmitBezier(const void *control_points, const void *indi
if (tess_v < 1) tess_v = 1;

// Make an array of pointers to the control points, to get rid of indices.
SimpleVertex **points = (SimpleVertex **)managedBuf.Allocate(sizeof(SimpleVertex *) * count_u * count_v);
const SimpleVertex **points = (const SimpleVertex **)managedBuf.Allocate(sizeof(SimpleVertex *) * count_u * count_v);
for (int idx = 0; idx < count_u * count_v; idx++)
points[idx] = simplified_control_points + (indices ? idxConv.convert(idx) : idx);

Expand Down

0 comments on commit b1289cd

Please sign in to comment.