From 16a8e986cebae6560d00992b6b9f54549e1d03c6 Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Wed, 28 Mar 2001 21:36:31 +0000 Subject: - Restore texImage->IntFormat. - Fix FX driver texture image conversions. --- src/mesa/main/teximage.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/teximage.c') diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 4f9e276..d14f577 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1,4 +1,4 @@ -/* $Id: teximage.c,v 1.88 2001/03/28 20:40:51 gareth Exp $ */ +/* $Id: teximage.c,v 1.89 2001/03/28 21:36:31 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -558,6 +558,7 @@ clear_teximage_fields(struct gl_texture_image *img) { ASSERT(img); img->Format = 0; + img->IntFormat = 0; img->Border = 0; img->Width = 0; img->Height = 0; @@ -587,6 +588,7 @@ init_teximage_fields(GLcontext *ctx, { ASSERT(img); img->Format = _mesa_base_tex_format( ctx, internalFormat ); + img->IntFormat = internalFormat; img->Border = border; img->Width = width; img->Height = height; @@ -872,7 +874,7 @@ subtexture_error_check( GLcontext *ctx, GLuint dimensions, } } - if (!is_compressed_format(ctx, destTex->TexFormat->IntFormat) && + if (!is_compressed_format(ctx, destTex->IntFormat) && !_mesa_is_legal_format_and_type(format, type)) { char message[100]; sprintf(message, "glTexSubImage%dD(format or type)", dimensions); -- cgit v1.1