summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-16 07:36:19 -0600
committerBrian Paul <brianp@vmware.com>2010-07-16 07:37:30 -0600
commit41bcd8cb1ee93209d38af7b47a158d20a6c5ae11 (patch)
tree0e7ad85cdafa4d3226abbf5f7fa6eac6e1b8c335
parent08f4bc07e424aaeb35eb58736fdca64b1398c190 (diff)
mesa: return retval in _mesa_RenderObjectUnpurgeable()
Found by Vinson with static analysis. NOTE: This is a candidate for the 7.8 branch.
-rw-r--r--src/mesa/main/bufferobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 6115ff0680f0..4e232b5731f6 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;
}