projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b859cdf
)
silence void ptr arithmetic warning
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 14:48:33 +0000
(07:48 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 14:48:33 +0000
(07:48 -0700)
src/mesa/pipe/p_inlines.h
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/p_inlines.h
b/src/mesa/pipe/p_inlines.h
index 1697284b049045464bf6dcded780ae65b525926b..e7303c45c1b4fe5e2c360d0a6dc9d91870d6511d 100644
(file)
--- 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;