diff options
author | Marek Olšák <[email protected]> | 2010-04-05 18:52:55 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-04-05 19:21:09 +0200 |
commit | a1f85cf689b6f9ccf6b7310485460f84c8d78cad (patch) | |
tree | f294e10528b0b40ed6c7f151c567804c4d7c3bc9 /src/gallium/drivers/r300/r300_context.h | |
parent | df65e64c294e93d83f6400b29a2a2d1c69db2c5d (diff) |
r300g: typecast using the r300_texture function
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index 9d7e9d1226d..be01db5b448 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -411,6 +411,11 @@ struct r300_context { }; /* Convenience cast wrapper. */ +static INLINE struct r300_texture* r300_texture(struct pipe_texture* tex) +{ + return (struct r300_texture*)tex; +} + static INLINE struct r300_context* r300_context(struct pipe_context* context) { return (struct r300_context*)context; |