From 4866a992ecf982387ab85dbcbb8d905fa91e28f1 Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 4 Sep 2013 17:14:49 +0800 Subject: [PATCH] Break if vertex count = 0 --- GPU/GLES/GLES_GPU.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/GLES_GPU.cpp b/GPU/GLES/GLES_GPU.cpp index e43262d80a..dcbfe55ab2 100644 --- a/GPU/GLES/GLES_GPU.cpp +++ b/GPU/GLES/GLES_GPU.cpp @@ -645,7 +645,10 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) { u32 count = data & 0xFFFF; GEPrimitiveType prim = static_cast(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