From 2db4ee0438fd828b378276e3d8b4498fc886ae14 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 16 May 2010 02:40:45 +0100 Subject: i965g: Fix return for resource_get_handle --- src/gallium/drivers/i965/brw_resource_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gallium/drivers/i965/brw_resource_texture.c b/src/gallium/drivers/i965/brw_resource_texture.c index 07537fe44ef..ca09d88fd12 100644 --- a/src/gallium/drivers/i965/brw_resource_texture.c +++ b/src/gallium/drivers/i965/brw_resource_texture.c @@ -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; } -- cgit v1.2.3