mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
Oops, fix mistake in spline drawing
This commit is contained in:
1 parent
3801062f76
commit
2df04bab3b
2 files changed
+5
-4
No files matched your search
@@ -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
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user