fix a cast/assignment warning
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 31 Aug 2005 00:00:17 +0000 (00:00 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 31 Aug 2005 00:00:17 +0000 (00:00 +0000)
src/mesa/drivers/dri/r300/r300_context.c

index 9d73281f0b9eba94e7c6987fe17a2f45f57e2bd4..f88e5ebb7a17b7ca8797343185ade79efa54bd2c 100644 (file)
@@ -189,7 +189,7 @@ static void r300BufferData(GLcontext *ctx, GLenum target, GLsizeiptrARB size,
                _mesa_buffer_data(ctx, target, size, data, usage, obj);
                return ;
        }
-       obj->Data = ((char *)rmesa->radeon.radeonScreen->gartTextures.map) + offset;
+       obj->Data = ((GLubyte *)rmesa->radeon.radeonScreen->gartTextures.map) + offset;
        
        if (data)
                memcpy(obj->Data, data, size);