projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d8b6d
)
u_surfaces: silence warning
author
Luca Barbieri
<luca@luca-barbieri.com>
Sun, 18 Apr 2010 15:35:17 +0000
(17:35 +0200)
committer
Luca Barbieri
<luca@luca-barbieri.com>
Sun, 18 Apr 2010 15:35:17 +0000
(17:35 +0200)
src/gallium/auxiliary/util/u_surfaces.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_surfaces.c
b/src/gallium/auxiliary/util/u_surfaces.c
index 3a0539ceb472e2463f5a54e92feb0e1c82ae68db..056b8f2341822b3fc977f87627b8ace8c145fed6 100644
(file)
--- a/
src/gallium/auxiliary/util/u_surfaces.c
+++ b/
src/gallium/auxiliary/util/u_surfaces.c
@@
-68,7
+68,7
@@
util_surfaces_do_detach(struct util_surfaces *us, struct pipe_surface *ps)
struct pipe_resource *pt = ps->texture;
if(pt->target == PIPE_TEXTURE_3D || pt->target == PIPE_TEXTURE_CUBE)
{ /* or 2D array */
-
unsigned key = ((ps->zslice + ps->face) << 8) | ps->level
;
+
void* key = (void*)(((ps->zslice + ps->face) << 8) | ps->level)
;
util_hash_table_remove(us->u.table, key);
}
else