aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-07-16 07:36:19 -0600
committerBrian Paul <[email protected]>2010-07-16 07:37:30 -0600
commit41bcd8cb1ee93209d38af7b47a158d20a6c5ae11 (patch)
tree0e7ad85cdafa4d3226abbf5f7fa6eac6e1b8c335 /src/mesa
parent08f4bc07e424aaeb35eb58736fdca64b1398c190 (diff)
mesa: return retval in _mesa_RenderObjectUnpurgeable()
Found by Vinson with static analysis. NOTE: This is a candidate for the 7.8 branch.
Diffstat (limited to 'src/mesa')
-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 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;
}