Permalink
Browse files

[spline/bezier]minor cleanup

  • Loading branch information...
xebra committed Jun 28, 2018
1 parent 24123e6 commit 7d450782024076a120842fac8d7bd3b59f75639b
Showing with 0 additions and 17 deletions.
  1. +0 −17 GPU/Common/SplineCommon.cpp
@@ -592,23 +592,6 @@ void TessellateBezierPatch(u8 *&dest, u16 *&indices, int &count, int tess_u, int
_BezierPatchHighQuality(dest, indices, count, tess_u, tess_v, patch, origVertType);
}
static void CopyControlPoints(const SimpleVertex *const *points, float *pos, float *tex, float *col, int posStride, int texStride, int colStride, int size, bool hasColor, bool hasTexCoords) {
for (int idx = 0; idx < size; idx++) {
memcpy(pos, points[idx]->pos.AsArray(), 3 * sizeof(float));
pos += posStride;
if (hasTexCoords) {
memcpy(tex, points[idx]->uv, 2 * sizeof(float));
tex += texStride;
}
if (hasColor) {
memcpy(col, Vec4f::FromRGBA(points[idx]->color_32).AsArray(), 4 * sizeof(float));
col += colStride;
}
}
if (!hasColor)
memcpy(col, Vec4f::FromRGBA(points[0]->color_32).AsArray(), 4 * sizeof(float));
}
class SimpleBufferManager {
private:
u8 *buf_;

0 comments on commit 7d45078

Please sign in to comment.