Merge pull request #12839 from hrydgard/tegra-range-culling-disable

GLES: Disable range culling on old Tegras, they seem to misbehave
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2020-04-19 21:00:38 +02:00
commit cd01ac6214
1 file changed
+5 -1
+5 -1
View File
@@ -572,7 +572,11 @@ OpenGLContext::OpenGLContext() {
}
}
if (caps_.vendor == GPUVendor::VENDOR_VIVANTE || caps_.vendor == GPUVendor::VENDOR_BROADCOM) {
// Try to detect old Tegra chips by checking for sub 3.0 GL versions. Like Vivante and Broadcom,
// those can't handle NaN values in conditionals.
if (caps_.vendor == GPUVendor::VENDOR_VIVANTE ||
caps_.vendor == GPUVendor::VENDOR_BROADCOM ||
(caps_.vendor == GPUVendor::VENDOR_NVIDIA && !gl_extensions.VersionGEThan(3, 0, 0))) {
bugs_.Infest(Bugs::BROKEN_NAN_IN_CONDITIONAL);
}