gallium: move st_texture_image() cast wrapper to header file
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 1 Sep 2008 19:09:31 +0000 (13:09 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 1 Sep 2008 19:10:53 +0000 (13:10 -0600)
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.h

index 16bbf3d..a3e8fc9 100644 (file)
 #define DBG if (0) printf
 
 
-static INLINE struct st_texture_image *
-st_texture_image(struct gl_texture_image *img)
-{
-   return (struct st_texture_image *) img;
-}
-
-
 static enum pipe_texture_target
 gl_target_to_pipe(GLenum target)
 {
index 3febe6a..31f66ad 100644 (file)
@@ -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)
 {