diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-06-08 13:03:11 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-06-08 13:09:51 +0300 |
commit | f71a2fc6c381f32e89ac09112ac3b7ebc3f8a794 (patch) | |
tree | 711e7abb61b7667348ce410b2880a88d8096de2c /source/blender/gpu/intern/gpu_texture.c | |
parent | 460c1d8e20491ec53dff94464e89796608a19b72 (diff) |
Fix T76273 Glitches caused by glCopyImageSubData on windows + intel gpu
We limit this fix to Windows Intel GPU whose driver reports at most GL 4.4
support. This limits the fix to the range of reported GPU.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index ca0d633aa9e..a985d45162c 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -1870,7 +1870,7 @@ void GPU_texture_copy(GPUTexture *dst, GPUTexture *src) BLI_assert(dst->d == 0); BLI_assert(dst->format == src->format); - if (GLEW_ARB_copy_image) { + if (GLEW_ARB_copy_image && !GPU_texture_copy_workaround()) { /* Opengl 4.3 */ glCopyImageSubData(src->bindcode, src->target, |