mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
mesa: reverse no_error on compressed_tex_sub_image for TEX_MODE_CURRENT
This fixes the regression introduced on "mesa: refactor
compressed_tex_sub_image function" that started to crash
KHR-GLES2.texture_3d.compressed_texture.negative_compressed_tex_sub_image
Fixes: 7df233d68d ("mesa: refactor compressed_tex_sub_image function")
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
b283919398
commit
6c904773fe
1 changed files with 2 additions and 2 deletions
|
|
@ -5617,9 +5617,9 @@ compressed_tex_sub_image(unsigned dim, GLenum target, GLuint textureOrIndex,
|
|||
false,
|
||||
caller);
|
||||
break;
|
||||
case TEX_MODE_CURRENT_ERROR:
|
||||
no_error = true;
|
||||
case TEX_MODE_CURRENT_NO_ERROR:
|
||||
no_error = true;
|
||||
case TEX_MODE_CURRENT_ERROR:
|
||||
default:
|
||||
assert(textureOrIndex == 0);
|
||||
texObj = _mesa_get_current_tex_object(ctx, target);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue