GLTexture: Fix crash with --debug-gpu on windows + nvidia

The combination of DSA + CubeMap seems to not please this driver.
This commit is contained in:
2020-09-06 22:03:25 +02:00
parent 7ffff04e49
commit 158cea83b5

View File

@@ -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;
}