gallium: move st_texture_image() cast wrapper to header file

This commit is contained in:
Brian Paul 2008-09-01 13:09:31 -06:00
parent 102529cf1b
commit 9d9143d889
2 changed files with 6 additions and 7 deletions

View file

@ -58,13 +58,6 @@
#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)
{

View 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)
{