Mesa (master): u_surfaces: silence warning
Luca Barbieri
lb at kemper.freedesktop.org
Sun Apr 18 15:35:39 UTC 2010
Module: Mesa
Branch: master
Commit: cea7b9f937dd8d987dc48e636adf83a829897a28
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cea7b9f937dd8d987dc48e636adf83a829897a28
Author: Luca Barbieri <luca at luca-barbieri.com>
Date: Sun Apr 18 17:35:17 2010 +0200
u_surfaces: silence warning
---
src/gallium/auxiliary/util/u_surfaces.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_surfaces.c b/src/gallium/auxiliary/util/u_surfaces.c
index 3a0539c..056b8f2 100644
--- 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
More information about the mesa-commit
mailing list