From b430a1ae226308c04dab2a62b5e9127dfed25b2c Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 18 Oct 2004 00:00:41 +0000 Subject: Fix compile errors when DEBUG is defined. --- src/mesa/drivers/dri/tdfx/tdfx_tex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/dri/tdfx') diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c index 4d92739fe6..c6fa3505b3 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c @@ -212,7 +212,7 @@ tdfxTexGetInfo(const GLcontext *ctx, int w, int h, /* Hardware only allows a maximum aspect ratio of 8x1, so handle |ar| > 3 by scaling the image and using an 8x1 aspect ratio */ if (ar >= 0) { - ASSERT(width >= height); + ASSERT(w >= h); lod = logw; if (ar <= GR_ASPECT_LOG2_8x1) { t = 256 >> ar; @@ -225,7 +225,7 @@ tdfxTexGetInfo(const GLcontext *ctx, int w, int h, } } else { - ASSERT(width < height); + ASSERT(w < h); lod = logh; if (ar >= GR_ASPECT_LOG2_1x8) { s = 256 >> -ar; @@ -595,7 +595,7 @@ convertPalette(FxU32 data[256], const struct gl_color_table *table) FxU32 r, g, b, a; GLint i; - ASSERT(table->TableType == GL_UNSIGNED_BYTE); + ASSERT(table->Type == GL_UNSIGNED_BYTE); switch (table->Format) { case GL_INTENSITY: -- cgit v1.2.3