Oops, fix mistake in spline drawing

This commit is contained in:
Henrik Rydgard 2015-01-29 16:30:52 +01:00
parent 3801062f76
commit 2df04bab3b
2 changed files with 5 additions and 4 deletions

View File

@ -95,7 +95,7 @@ void TransformDrawEngineDX9::SubmitSpline(const void *control_points, const void
}
int bytesRead = 0;
SubmitPrim(dest, quadIndices_, primType[prim_type], count, vertTypeWithIndex16, &bytesRead);
SubmitPrim(splineBuffer, quadIndices_, primType[prim_type], count, vertTypeWithIndex16, &bytesRead);
Flush();
@ -188,7 +188,7 @@ void TransformDrawEngineDX9::SubmitBezier(const void *control_points, const void
}
int bytesRead = 0;
SubmitPrim(dest, quadIndices_, primType[prim_type], count, vertTypeWithIndex16, &bytesRead);
SubmitPrim(splineBuffer, quadIndices_, primType[prim_type], count, vertTypeWithIndex16, &bytesRead);
Flush();

View File

@ -71,6 +71,7 @@ void TransformDrawEngine::SubmitSpline(const void *control_points, const void *i
}
int count = 0;
u8 *dest = splineBuffer;
SplinePatchLocal patch;
@ -81,7 +82,7 @@ void TransformDrawEngine::SubmitSpline(const void *control_points, const void *i
patch.points = points;
int maxVertexCount = SPLINE_BUFFER_SIZE / vertexSize;
TesselateSplinePatch(splineBuffer, quadIndices_, count, patch, origVertType, maxVertexCount);
TesselateSplinePatch(dest, quadIndices_, count, patch, origVertType, maxVertexCount);
delete[] points;
@ -191,7 +192,7 @@ void TransformDrawEngine::SubmitBezier(const void *control_points, const void *i
}
int bytesRead;
SubmitPrim(dest, quadIndices_, primType[prim_type], count, vertTypeWithIndex16, &bytesRead);
SubmitPrim(splineBuffer, quadIndices_, primType[prim_type], count, vertTypeWithIndex16, &bytesRead);
Flush();