prevImage->InternalFormat == internalFormat) {
/* use the same format */
texImage->TexFormat = prevImage->TexFormat;
+ ASSERT(texImage->TexFormat != MESA_FORMAT_NONE);
return;
}
}
width, border, format, type, pixels,
&ctx->Unpack, texObj, texImage);
- ASSERT(texImage->TexFormat);
-
_mesa_set_fetch_functions(texImage, 1);
check_gen_mipmap(ctx, target, texObj, level);
width, height, border, format, type,
pixels, &ctx->Unpack, texObj, texImage);
- ASSERT(texImage->TexFormat);
-
_mesa_set_fetch_functions(texImage, 2);
check_gen_mipmap(ctx, target, texObj, level);
width, height, depth, border, format, type,
pixels, &ctx->Unpack, texObj, texImage);
- ASSERT(texImage->TexFormat);
-
_mesa_set_fetch_functions(texImage, 3);
check_gen_mipmap(ctx, target, texObj, level);
ctx->Driver.CopyTexImage1D(ctx, target, level, internalFormat,
x, y, width, border);
- ASSERT(texImage->TexFormat);
-
_mesa_set_fetch_functions(texImage, 1);
check_gen_mipmap(ctx, target, texObj, level);
ctx->Driver.CopyTexImage2D(ctx, target, level, internalFormat,
x, y, width, height, border);
- ASSERT(texImage->TexFormat);
-
_mesa_set_fetch_functions(texImage, 2);
check_gen_mipmap(ctx, target, texObj, level);