diff options
author | Brian Paul <brianp@vmware.com> | 2010-07-16 07:36:19 -0600 |
---|---|---|
committer | Tom Fogal <tfogal@alumni.unh.edu> | 2010-08-03 12:03:56 -0600 |
commit | 12df872f8c38e5a0d69b27fe3f0b94446d76299a (patch) | |
tree | 19f94da93d23e1d1fd4029f16642bd82a0dbdb1c | |
parent | 0d3ac51bf20160c139a0a1975434d9fde90cf6b3 (diff) |
mesa: return retval in _mesa_RenderObjectUnpurgeable()
Found by Vinson with static analysis.
NOTE: This is a candidate for the 7.8 branch.
(cherry picked from commit 41bcd8cb1ee93209d38af7b47a158d20a6c5ae11)
-rw-r--r-- | src/mesa/main/bufferobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 4ba4aac7c0..98bb7faf2e 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -1914,7 +1914,7 @@ _mesa_RenderObjectUnpurgeable(GLcontext *ctx, GLuint name, GLenum option) if (ctx->Driver.RenderObjectUnpurgeable) retval = ctx->Driver.RenderObjectUnpurgeable(ctx, bufObj, option); - return option; + return retval; } |