mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T64758: crash loading certain DDS textures
This commit is contained in:
parent
ad4dd3ebef
commit
24607a2940
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ void GPU_create_gl_tex_compressed(unsigned int *bind, int textarget, Image *ima,
|
|||
|
||||
if (textarget == GL_TEXTURE_2D && GPU_upload_dxt_texture(ibuf, use_srgb) == 0) {
|
||||
glDeleteTextures(1, (GLuint *)bind);
|
||||
GPU_create_gl_tex(bind, ibuf->rect, NULL, ibuf->x, ibuf->x, textarget, mipmap, use_srgb, ima);
|
||||
GPU_create_gl_tex(bind, ibuf->rect, NULL, ibuf->x, ibuf->y, textarget, mipmap, use_srgb, ima);
|
||||
}
|
||||
|
||||
glBindTexture(textarget, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue