mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
silence void ptr arithmetic warning
This commit is contained in:
parent
b859cdf6f1
commit
b9300f16c4
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue