From d040b980dd2cbd4fefd9f43e0a888122fec6aff3 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 24 Jun 2014 23:31:55 +0200 Subject: [PATCH] Experiment: Disable clear optimization on PVR (see #6290) --- GPU/GLES/SoftwareTransform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/SoftwareTransform.cpp b/GPU/GLES/SoftwareTransform.cpp index de0df57f32..48a89559d7 100644 --- a/GPU/GLES/SoftwareTransform.cpp +++ b/GPU/GLES/SoftwareTransform.cpp @@ -391,7 +391,8 @@ void TransformDrawEngine::SoftwareTransformAndDraw( // // An alternative option is to simply ditch all the verts except the first and last to create a single // rectangle out of many. Quite a small optimization though. - if (maxIndex > 1 && gstate.isModeClear() && prim == GE_PRIM_RECTANGLES && IsReallyAClear(maxIndex)) { + // Experiment: Disable on PowerVR (see issue #6290) + if (maxIndex > 1 && gstate.isModeClear() && prim == GE_PRIM_RECTANGLES && IsReallyAClear(maxIndex) && gl_extensions.gpuVendor != GPU_VENDOR_POWERVR) { u32 clearColor = transformed[0].color0_32; float clearDepth = transformed[0].z; const float col[4] = {