mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-30 10:39:12 +02:00
Merge pull request #3612 from raven02/patch-10
Continue previous prim command when it was a STRIP or FAN
This commit is contained in:
@@ -645,7 +645,10 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) {
|
||||
|
||||
u32 count = data & 0xFFFF;
|
||||
GEPrimitiveType prim = static_cast<GEPrimitiveType>(data >> 16);
|
||||
|
||||
|
||||
if (count == 0)
|
||||
break;
|
||||
|
||||
// Discard AA lines as we can't do anything that makes sense with these anyway. The SW plugin might, though.
|
||||
|
||||
// Discard AA lines in DOA
|
||||
|
||||
@@ -838,7 +838,18 @@ void TransformDrawEngine::SubmitPrim(void *verts, void *inds, GEPrimitiveType pr
|
||||
|
||||
if (!indexGen.PrimCompatible(prevPrim_, prim) || numDrawCalls >= MAX_DEFERRED_DRAW_CALLS)
|
||||
Flush();
|
||||
|
||||
if (prim == GE_PRIM_KEEP_PREVIOUS) {
|
||||
switch(prevPrim_) {
|
||||
case GE_PRIM_LINE_STRIP:
|
||||
case GE_PRIM_TRIANGLE_STRIP:
|
||||
case GE_PRIM_TRIANGLE_FAN:
|
||||
break;
|
||||
}
|
||||
prim = prevPrim_;
|
||||
}
|
||||
prevPrim_ = prim;
|
||||
|
||||
SetupVertexDecoder(vertType);
|
||||
|
||||
dec_->IncrementStat(STAT_VERTSSUBMITTED, vertexCount);
|
||||
|
||||
Reference in New Issue
Block a user