st/mesa: remove bogus assertions st_CompressedTexSubImage2D

width/height may not be a multiple of blocksize (small mip levels / npot
textures). This should be handled just fine.
Fixes #28530.
This commit is contained in:
Roland Scheidegger
2010-06-22 13:32:25 +01:00
parent eb7ef433bb
commit 583f241716

View File

@@ -1242,8 +1242,6 @@ st_CompressedTexSubImage2D(GLcontext *ctx, GLenum target, GLint level,
assert(xoffset % util_format_get_blockwidth(pformat) == 0);
assert(yoffset % util_format_get_blockheight(pformat) == 0);
assert(width % util_format_get_blockwidth(pformat) == 0);
assert(height % util_format_get_blockheight(pformat) == 0);
for (y = 0; y < height; y += util_format_get_blockheight(pformat)) {
/* don't need to adjust for xoffset and yoffset as st_texture_image_map does that */