summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-06-24 14:42:38 -0600
committerBrian Paul <brianp@vmware.com>2013-06-25 17:54:23 -0600
commit82d6a525309c0855e16ccdccaa8d9740682947a3 (patch)
tree560005fe29dff0bb07fdc99774fd488073861131 /src
parent464c6949cb2998b80f4a2d70add99e6a7cf8c67d (diff)
downloadexternal_mesa3d-82d6a525309c0855e16ccdccaa8d9740682947a3.zip
external_mesa3d-82d6a525309c0855e16ccdccaa8d9740682947a3.tar.gz
external_mesa3d-82d6a525309c0855e16ccdccaa8d9740682947a3.tar.bz2
svga: use svga_texture() helper instead of casting
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_resource_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c
index 3cb7d34..cb825b4 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++;