diff options
author | José Fonseca <[email protected]> | 2007-12-18 22:19:40 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-01-17 12:09:40 +0900 |
commit | bf3bdb3b42632e7621e1cbae0d24e60b05ce16e0 (patch) | |
tree | 8feabe09a3a4c2e2a836a82db1d67f598d5373c4 /src/mesa/pipe | |
parent | 3eaf882a662f719845ead1017e28a121cbce86fb (diff) |
gallium: Fix cut-n-paste error.
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r-- | src/mesa/pipe/pipebuffer/pb_bufmgr_mm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/pipebuffer/pb_bufmgr_mm.c b/src/mesa/pipe/pipebuffer/pb_bufmgr_mm.c index e184655f1a9..e9bc34b4a4f 100644 --- a/src/mesa/pipe/pipebuffer/pb_bufmgr_mm.c +++ b/src/mesa/pipe/pipebuffer/pb_bufmgr_mm.c @@ -230,8 +230,6 @@ mm_bufmgr_create_from_buffer(struct pipe_buffer *buffer, if (!mm) return NULL; - assert(provider); - assert(provider->create_buffer); mm->base.create_buffer = mm_bufmgr_create_buffer; mm->base.destroy = mm_bufmgr_destroy; @@ -271,6 +269,8 @@ mm_bufmgr_create(struct buffer_manager *provider, struct pipe_buffer *buffer; struct buffer_manager *mgr; + assert(provider); + assert(provider->create_buffer); buffer = provider->create_buffer(provider, size); if (!buffer) return NULL; |