From 82d6a525309c0855e16ccdccaa8d9740682947a3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 24 Jun 2013 14:42:38 -0600 Subject: [PATCH] svga: use svga_texture() helper instead of casting --- src/gallium/drivers/svga/svga_resource_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.30.2