Permalink
Browse files

[spline/bezier]minor fix

  • Loading branch information...
xebra committed Jun 27, 2018
1 parent 3c2837b commit b1289cddce6b9365f51d1c4a34514356e407e12f
Showing with 2 additions and 2 deletions.
  1. +2 −2 GPU/Common/SplineCommon.cpp
@@ -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);
@@ -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);

0 comments on commit b1289cd

Please sign in to comment.