From: Jakob Bornecrantz Date: Sun, 16 May 2010 01:40:45 +0000 (+0100) Subject: i965g: Fix return for resource_get_handle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2db4ee0438fd828b378276e3d8b4498fc886ae14;p=mesa.git i965g: Fix return for resource_get_handle --- 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; }