Experiment: Disable clear optimization on PVR (see #6290)

This commit is contained in:
Henrik Rydgard 2014-06-24 23:31:55 +02:00
parent fea0a26113
commit d040b980dd

View File

@ -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] = {