diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-05-13 13:55:24 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-05-13 13:55:24 +0300 |
commit | 94ad77100c7626ef9f3c276b627ffc51661384ed (patch) | |
tree | 845511f18e33e6f19548cc09005793f2f423acb2 /source/blender/gpu/opengl | |
parent | 6e2270f3d33c1b6dc8c7779a42398c5943fa3072 (diff) | |
parent | cbc024c3cac29dd17a9e5338162792d8fadc82ee (diff) |
Merge branch 'blender-v3.2-release'
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r-- | source/blender/gpu/opengl/gl_backend.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc index 17d9b392c69..1cd2301aa4e 100644 --- a/source/blender/gpu/opengl/gl_backend.cc +++ b/source/blender/gpu/opengl/gl_backend.cc @@ -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; } |