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: 7df233d68dc ("mesa: refactor compressed_tex_sub_image function")
Reviewed-by: Eric Anholt <eric@anholt.net>
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);