From 4c7883e402dd0733a56870f4517e455e46523cf4 Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Mon, 2 Feb 2004 07:46:27 +0000 Subject: fixed a bug in GL_NEAREST sampler --- src/mesa/drivers/glide/fxddtex.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/glide/fxddtex.c b/src/mesa/drivers/glide/fxddtex.c index 80728fe577..17ff082696 100644 --- a/src/mesa/drivers/glide/fxddtex.c +++ b/src/mesa/drivers/glide/fxddtex.c @@ -978,21 +978,6 @@ fxDDChooseTextureFormat( GLcontext *ctx, GLint internalFormat, fxMesaContext fxMesa = FX_CONTEXT(ctx); GLboolean allow32bpt = fxMesa->HaveTexFmt; - /* [dBorca] Hack alert: - * There is something wrong with this!!! Take an example: - * 1) start HW rendering - * 2) create a texture like this: - * glTexImage2D(GL_TEXTURE_2D, 0, 3, 16, 16, 0, - * GL_RGB, GL_UNSIGNED_BYTE, floorTexture); - * glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - * 3) we get here with internalFormat==3 and return either - * _mesa_texformat_rgb565 or _mesa_texformat_argb8888 - * 4) at some point, we encounter total rasterization fallback - * 5) displaying a polygon with the above textures yield garbage on areas - * where pixel is larger than a texel, because our already set texel - * function doesn't match the real _mesa_texformat_argb888 - */ - if (TDFX_DEBUG & VERBOSE_TEXTURE) { fprintf(stderr, "fxDDChooseTextureFormat(...)\n"); } -- cgit v1.2.3