diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 07:48:33 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 07:48:33 -0700 |
commit | b9300f16c40e1fecf6237ca06888e42da85c55b5 (patch) | |
tree | 54785ad6ac230fa68f9d2dcb0bfe3a578a8dc8c4 /src/mesa/pipe/p_inlines.h | |
parent | b859cdf6f191b4d8b56537c8dc30082a7e2d94b3 (diff) | |
download | external_mesa3d-b9300f16c40e1fecf6237ca06888e42da85c55b5.zip external_mesa3d-b9300f16c40e1fecf6237ca06888e42da85c55b5.tar.gz external_mesa3d-b9300f16c40e1fecf6237ca06888e42da85c55b5.tar.bz2 |
silence void ptr arithmetic warning
Diffstat (limited to 'src/mesa/pipe/p_inlines.h')
-rw-r--r-- | src/mesa/pipe/p_inlines.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/pipe/p_inlines.h b/src/mesa/pipe/p_inlines.h index 1697284..e7303c4 100644 --- a/src/mesa/pipe/p_inlines.h +++ b/src/mesa/pipe/p_inlines.h @@ -37,11 +37,12 @@ static INLINE ubyte * pipe_surface_map(struct pipe_surface *surface) { if (!surface->map_refcount++) { - surface->map = surface->winsys->buffer_map( surface->winsys, + surface->map + = (ubyte *) surface->winsys->buffer_map( surface->winsys, surface->buffer, PIPE_BUFFER_FLAG_WRITE | PIPE_BUFFER_FLAG_READ ) - + surface->offset; + + surface->offset; } return surface->map; |