Merge branch 'blender-v3.2-release'

This commit is contained in:
Jeroen Bakker
2022-05-13 12:55:24 +02:00

View File

@@ -419,10 +419,10 @@ static void detect_workarounds()
GCaps.shader_storage_buffer_objects_support = false;
}
/* Certain Intel based platforms don't clear the viewport textures. Always clearing leads to
* noticeable performance regressions. */
if (GPU_type_matches(
GPU_DEVICE_INTEL, static_cast<eGPUOSType>(GPU_OS_MAC | GPU_OS_UNIX), GPU_DRIVER_ANY)) {
/* Certain Intel/AMD based platforms don't clear the viewport textures. Always clearing leads to
* noticeable performance regressions on other platforms as well. */
if (GPU_type_matches(GPU_DEVICE_ANY, GPU_OS_MAC, GPU_DRIVER_ANY) ||
GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_UNIX, GPU_DRIVER_ANY)) {
GCaps.clear_viewport_workaround = true;
}