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 16bbf3d80f2c48eb2111a21f38f11ebc0545d58c..a3e8fc992d9f6b8e6b4d6f562118b0bd43f14f11 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 3febe6a7cb069a0e23398b9246839f90f47b864b..31f66ad52cf5abe4d6f726e4b22b44c3a57a5ffe 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)
 {