diff options
author | Brian Paul <[email protected]> | 2009-03-04 09:34:46 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-03-04 09:34:46 -0700 |
commit | ca06c0c16d09d58f96736aa095e1a592862a9427 (patch) | |
tree | 220db1f7504d7142b044e305e2a0f78f53918c45 /src/gallium/winsys | |
parent | fba923ff4415ce8a14c890dea65bcb07b2f87fb5 (diff) |
cell: update cell driver after gallium reference count changes
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/xlib/xlib_cell.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gallium/winsys/xlib/xlib_cell.c b/src/gallium/winsys/xlib/xlib_cell.c index a5dbdf30f65..13e609f58fe 100644 --- a/src/gallium/winsys/xlib/xlib_cell.c +++ b/src/gallium/winsys/xlib/xlib_cell.c @@ -107,22 +107,21 @@ xm_buffer_unmap(struct pipe_winsys *pws, struct pipe_buffer *buf) } static void -xm_buffer_destroy(struct pipe_winsys *pws, +xm_buffer_destroy(/*struct pipe_winsys *pws,*/ struct pipe_buffer *buf) { struct xm_buffer *oldBuf = xm_buffer(buf); - if (oldBuf->data) { - { + if (oldBuf) { + if (oldBuf->data) { if (!oldBuf->userBuffer) { align_free(oldBuf->data); } - } - oldBuf->data = NULL; + oldBuf->data = NULL; + } + free(oldBuf); } - - free(oldBuf); } @@ -371,7 +370,7 @@ xlib_create_cell_winsys( void ) static struct pipe_screen * -xlib_create_cell_screen( struct pipe_winsys *pws ) +xlib_create_cell_screen( void ) { struct pipe_winsys *winsys; struct pipe_screen *screen; |