From a7fcac5e9252101610b3b48a019a36527096ca9b Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Thu, 21 Apr 2005 21:50:54 +0000 Subject: Fixed some suspicious pointer casts that caused lots of compile-time-warnings on x86-64. Not tested on x86-64 yet, but a good thing in general, so I'm giving up waiting for feedback. See also https://bugs.freedesktop.org/show_bug.cgi?id=2924. --- src/mesa/drivers/dri/savage/savagetex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/savage/savagetex.c') diff --git a/src/mesa/drivers/dri/savage/savagetex.c b/src/mesa/drivers/dri/savage/savagetex.c index b681b0293b4..6641231371e 100644 --- a/src/mesa/drivers/dri/savage/savagetex.c +++ b/src/mesa/drivers/dri/savage/savagetex.c @@ -768,7 +768,7 @@ static void savageUploadTexImages( savageContextPtr imesa, savageTexObjPtr t ) ofs = t->base.memBlock->ofs; t->setup.physAddr = imesa->savageScreen->textureOffset[heap] + ofs; - t->bufAddr = (char *)((GLuint) imesa->savageScreen->texVirtual[heap] + ofs); + t->bufAddr = (GLubyte *)imesa->savageScreen->texVirtual[heap] + ofs; imesa->dirty |= SAVAGE_UPLOAD_GLOBAL; /* FIXME: really needed? */ } -- cgit v1.2.3