winsys/svga: Fix an uninitialized return value
Reported-by: Brian Paul <brianp@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviwed-by: Brian Paul <brianp@vmware.com> Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -170,6 +170,8 @@ vmw_svga_winsys_surface_unmap(struct svga_winsys_context *swc,
|
|||||||
*rebind = vsrf->rebind;
|
*rebind = vsrf->rebind;
|
||||||
vsrf->rebind = FALSE;
|
vsrf->rebind = FALSE;
|
||||||
vmw_svga_winsys_buffer_unmap(&vsrf->screen->base, vsrf->buf);
|
vmw_svga_winsys_buffer_unmap(&vsrf->screen->base, vsrf->buf);
|
||||||
|
} else {
|
||||||
|
*rebind = FALSE;
|
||||||
}
|
}
|
||||||
pipe_mutex_unlock(vsrf->mutex);
|
pipe_mutex_unlock(vsrf->mutex);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user