From: Brian Paul Date: Fri, 16 Jul 2010 13:36:19 +0000 (-0600) Subject: mesa: return retval in _mesa_RenderObjectUnpurgeable() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41bcd8cb1ee93209d38af7b47a158d20a6c5ae11;p=mesa.git mesa: return retval in _mesa_RenderObjectUnpurgeable() Found by Vinson with static analysis. NOTE: This is a candidate for the 7.8 branch. --- diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 6115ff0680f..4e232b5731f 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -1958,7 +1958,7 @@ _mesa_RenderObjectUnpurgeable(GLcontext *ctx, GLuint name, GLenum option) if (ctx->Driver.RenderObjectUnpurgeable) retval = ctx->Driver.RenderObjectUnpurgeable(ctx, bufObj, option); - return option; + return retval; }