gallium: move st_texture_image() cast wrapper to header file
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user