mesa: return retval in _mesa_RenderObjectUnpurgeable()
authorBrian Paul <brianp@vmware.com>
Fri, 16 Jul 2010 13:36:19 +0000 (07:36 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 16 Jul 2010 13:37:30 +0000 (07:37 -0600)
Found by Vinson with static analysis.

NOTE: This is a candidate for the 7.8 branch.

src/mesa/main/bufferobj.c

index 6115ff0680f08583ec749d59a3eca42cddd0ba4b..4e232b5731f6fca2283b61c717af494e8b0e3193 100644 (file)
@@ -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;
 }