summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_texture.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-07 10:21:56 -0700
committerBen Skeggs <skeggsb@gmail.com>2007-12-09 12:05:26 +1100
commit0d74d51790d81f6a19145ddb2f95d83c607c89dd (patch)
tree8b88c31d43491843f04b5f8d6f849507dcdb886a /src/mesa/pipe/softpipe/sp_texture.c
parent99823680a51ccc46a76d0abe6a24e7e4465a4cc6 (diff)
Move struct softpipe_texture definition into sp_texture.h
Also, added softpipe_texture() cast wrapper.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_texture.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_texture.c b/src/mesa/pipe/softpipe/sp_texture.c
index 53486f9bba..e8cdd67435 100644
--- a/src/mesa/pipe/softpipe/sp_texture.c
+++ b/src/mesa/pipe/softpipe/sp_texture.c
@@ -412,7 +412,7 @@ softpipe_texture_release(struct pipe_context *pipe, struct pipe_texture **pt)
__FUNCTION__, (void *) *pt, (*pt)->refcount - 1);
*/
if (--(*pt)->refcount <= 0) {
- struct softpipe_texture *spt = (struct softpipe_texture *)*pt;
+ struct softpipe_texture *spt = softpipe_texture(*pt);
uint i;
/*