diff options
author | Daniel Borca <dborca@users.sourceforge.net> | 2003-11-03 12:01:03 +0000 |
---|---|---|
committer | Daniel Borca <dborca@users.sourceforge.net> | 2003-11-03 12:01:03 +0000 |
commit | 313e12e05843dadb12a3a53d2dd161478c9b3202 (patch) | |
tree | 83cef18b4fcf383803b3a60d3902832e146deb7d /src/mesa/drivers/glide/fxddtex.c | |
parent | 7093114285bb315070af572ff4aecc204c400ef4 (diff) |
Voodoo2 happiness
Diffstat (limited to 'src/mesa/drivers/glide/fxddtex.c')
-rw-r--r-- | src/mesa/drivers/glide/fxddtex.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/drivers/glide/fxddtex.c b/src/mesa/drivers/glide/fxddtex.c index c425549d9c..16710bd232 100644 --- a/src/mesa/drivers/glide/fxddtex.c +++ b/src/mesa/drivers/glide/fxddtex.c @@ -864,8 +864,8 @@ GLboolean fxDDIsCompressedFormat ( GLcontext *ctx, GLenum internalFormat ) /* [dBorca] * we are handling differently the above formats from the generic - * GL_COMPRESSED_RGB[A]. For this, we will always separately - * check for the ones below! + * GL_COMPRESSED_RGB[A]. For this, we will always have to separately + * check the below formats... */ #if FX_TC_NCC || FX_TC_NAPALM @@ -1495,7 +1495,7 @@ fxDDCompressedTexImage2D (GLcontext *ctx, GLenum target, /* choose the texture format */ assert(ctx->Driver.ChooseTextureFormat); texImage->TexFormat = (*ctx->Driver.ChooseTextureFormat)(ctx, - internalFormat, format, type); + internalFormat, -1/*format*/, -1/*type*/); assert(texImage->TexFormat); /* Determine the appropriate Glide texel format, @@ -1542,11 +1542,12 @@ fxDDCompressedTexImage2D (GLcontext *ctx, GLenum target, } #endif + ti->info.format = mml->glideFormat; + texImage->FetchTexel = fxFetchFunction(texImage->TexFormat->MesaFormat); + /* [dBorca] Hack alert: * what about different size/texel? other anomalies? SW rescaling? */ - ti->info.format = mml->glideFormat; - texImage->FetchTexel = fxFetchFunction(texImage->TexFormat->MesaFormat); /* [dBorca] * Hack alert: unsure... |