Merge pull request #3612 from raven02/patch-10

Continue previous prim command when it was a STRIP or FAN
This commit is contained in:
Henrik Rydgård
2013-09-04 02:37:30 -07:00
2 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -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
+11
View File
@@ -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);