mesa: return retval in _mesa_RenderObjectUnpurgeable()

Found by Vinson with static analysis.

NOTE: This is a candidate for the 7.8 branch.
This commit is contained in:
Brian Paul
2010-07-16 07:36:19 -06:00
parent 08f4bc07e4
commit 41bcd8cb1e

View 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;
}