Oops, fix mistake in spline drawing

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

No files matched your search

+2 -2
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();
+3 -2
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();