svga: use svga_texture() helper instead of casting

This commit is contained in:
Brian Paul 2013-06-24 14:42:38 -06:00
parent 464c6949cb
commit 82d6a52530
1 changed files with 1 additions and 1 deletions

View File

@ -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++;