softgpu: Avoid unnecessary flushing for curves.

We don't need to flush all drawing between curves in softgpu, let them
queue up.
This commit is contained in:
Unknown W. Brackets 2022-09-22 00:08:38 -07:00
parent 337518415e
commit fc39f042ae
4 changed files with 9 additions and 3 deletions

View file

@ -577,7 +577,8 @@ void DrawEngineCommon::SubmitCurve(const void *control_points, const void *indic
if (output.count)
DispatchSubmitPrim(output.vertices, output.indices, PatchPrimToPrim(surface.primType), output.count, vertTypeID, gstate.getCullMode(), &generatedBytesRead);
DispatchFlush();
if (flushOnParams_)
DispatchFlush();
if (origVertType & GE_VTYPE_TC_MASK) {
gstate_c.uv = prevUVScale;