diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-06 23:03:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-06 23:13:06 +0300 |
commit | 158cea83b5bbe4bd57f4ca9cd4f6fe9a0624e00b (patch) | |
tree | 6962cc6ad520a252fecf1133060cc3969e2efd70 /source/blender | |
parent | 7ffff04e4900ca284519900d12bd1490e218c4f4 (diff) |
GLTexture: Fix crash with --debug-gpu on windows + nvidia
The combination of DSA + CubeMap seems to not please this driver.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpu/opengl/gl_texture.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_texture.cc b/source/blender/gpu/opengl/gl_texture.cc index 498d0442fca..f1779601e33 100644 --- a/source/blender/gpu/opengl/gl_texture.cc +++ b/source/blender/gpu/opengl/gl_texture.cc @@ -262,7 +262,8 @@ void GLTexture::update_sub( GLenum gl_format = to_gl_data_format(format_); GLenum gl_type = to_gl(type); - if (GLEW_ARB_direct_state_access) { + /* Some drivers have issues with cubemap & glTextureSubImage3D even if it correct. */ + if (GLEW_ARB_direct_state_access && (type_ != GPU_TEXTURE_CUBE)) { this->update_sub_direct_state_access(mip, offset, extent, gl_format, gl_type, data); return; } |