mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
silence void ptr arithmetic warning
This commit is contained in:
parent
0a44a3fa2f
commit
a775689036
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