i965g: Fix return for resource_get_handle
authorJakob Bornecrantz <wallbraker@gmail.com>
Sun, 16 May 2010 01:40:45 +0000 (02:40 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 16 May 2010 11:22:19 +0000 (12:22 +0100)
src/gallium/drivers/i965/brw_resource_texture.c

index 07537fe44efb07f2560cdf0af9de737321df1f65..ca09d88fd1203f6808bef8f6e9d0057207d91914 100644 (file)
@@ -210,7 +210,7 @@ brw_texture_get_handle(struct pipe_screen *screen,
 
    stride = tex->pitch * tex->cpp;
 
-   return bscreen->sws->bo_get_handle(tex->bo, whandle, stride);
+   return bscreen->sws->bo_get_handle(tex->bo, whandle, stride) == PIPE_OK;
 }