From: Brian Paul Date: Mon, 24 Jun 2013 20:42:38 +0000 (-0600) Subject: svga: use svga_texture() helper instead of casting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82d6a525309c0855e16ccdccaa8d9740682947a3;p=mesa.git svga: use svga_texture() helper instead of casting --- diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index 3cb7d34bad0..cb825b41206 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -218,7 +218,7 @@ svga_texture_destroy(struct pipe_screen *screen, struct pipe_resource *pt) { struct svga_screen *ss = svga_screen(screen); - struct svga_texture *tex = (struct svga_texture *)pt; + struct svga_texture *tex = svga_texture(pt); ss->texture_timestamp++;