pipebuffer: Fix copy'n'paste typo.

This commit is contained in:
José Fonseca 2009-03-03 12:01:01 +00:00
parent 2785af803f
commit 9036e0d724

View file

@ -302,7 +302,7 @@ fenced_buffer_map(struct pb_buffer *buf,
((fenced_buf->flags & PIPE_BUFFER_USAGE_GPU_READ) && (flags & PIPE_BUFFER_USAGE_CPU_WRITE))) {
if(flags & PIPE_BUFFER_USAGE_DONTBLOCK) {
/* Don't wait for the GPU to finish writing */
if(winsys->fence_finish(winsys, fenced_buf->fence, 0) == 0)
if(winsys->fence_signalled(winsys, fenced_buf->fence, 0) == 0)
_fenced_buffer_remove(fenced_list, fenced_buf);
else
return NULL;