summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_texture.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-01 13:09:31 -0600
committerBrian Paul <[email protected]>2008-09-01 13:10:53 -0600
commit9d9143d88985e69835b374ff330bab929275d68e (patch)
tree380e5ef7be7de18b137eb744ea8da09d13e73208 /src/mesa/state_tracker/st_texture.h
parent102529cf1b6ab860d47e92a0bb58a0dce8b31cbc (diff)
gallium: move st_texture_image() cast wrapper to header file
Diffstat (limited to 'src/mesa/state_tracker/st_texture.h')
-rw-r--r--src/mesa/state_tracker/st_texture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index 3febe6a7cb0..31f66ad52cf 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -72,6 +72,12 @@ struct st_texture_object
};
+static INLINE struct st_texture_image *
+st_texture_image(struct gl_texture_image *img)
+{
+ return (struct st_texture_image *) img;
+}
+
static INLINE struct st_texture_object *
st_texture_object(struct gl_texture_object *obj)
{