Cleanup GPU vendor detection a bit, use it to avoid the issue mentioned in #9545

This commit is contained in:
Henrik Rydgård committed 2017-11-21 16:19:28 +01:00
1 parent 9468b3d073
commit 2c86217552
13 files changed
+88 -24

No files matched your search

+1 -1
View File
@@ -400,7 +400,7 @@ void SoftwareTransform(
int scissorY2 = gstate.getScissorY2() + 1;
reallyAClear = IsReallyAClear(transformed, maxIndex, scissorX2, scissorY2);
}
if (reallyAClear && gl_extensions.gpuVendor != GPU_VENDOR_POWERVR) {
if (reallyAClear && gl_extensions.gpuVendor != GPU_VENDOR_IMGTEC) {
// If alpha is not allowed to be separate, it must match for both depth/stencil and color. Vulkan requires this.
bool alphaMatchesColor = gstate.isClearModeColorMask() == gstate.isClearModeAlphaMask();
bool depthMatchesStencil = gstate.isClearModeAlphaMask() == gstate.isClearModeDepthMask();