mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-23 16:19:44 +00:00
Oops, fix mistake in spline drawing
This commit is contained in:
parent
3801062f76
commit
2df04bab3b
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user