From 41bcd8cb1ee93209d38af7b47a158d20a6c5ae11 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 16 Jul 2010 07:36:19 -0600 Subject: mesa: return retval in _mesa_RenderObjectUnpurgeable() Found by Vinson with static analysis. NOTE: This is a candidate for the 7.8 branch. --- src/mesa/main/bufferobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/bufferobj.c') 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; } -- cgit v1.2.3