gallium: pipe_transfer_destroy helper inline.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 15 Sep 2009 15:02:00 +0000 (16:02 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 15 Sep 2009 15:02:54 +0000 (16:02 +0100)
src/gallium/include/pipe/p_inlines.h

index aa757e7bda155608fa458f86fd75f2231d6b702d..25257bdf3f4a89c38f00f1664919b4609750cf53 100644 (file)
@@ -169,6 +169,13 @@ pipe_transfer_unmap( struct pipe_transfer *transf )
    screen->transfer_unmap(screen, transf);
 }
 
+static INLINE void
+pipe_transfer_destroy( struct pipe_transfer *transf )
+{
+   struct pipe_screen *screen = transf->texture->screen;
+   return screen->tex_transfer_destroy(transf);
+}
+
 #ifdef __cplusplus
 }
 #endif