projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f4bc0
)
mesa: return retval in _mesa_RenderObjectUnpurgeable()
author
Brian Paul
<brianp@vmware.com>
Fri, 16 Jul 2010 13:36:19 +0000
(07:36 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/bufferobj.c
b/src/mesa/main/bufferobj.c
index 6115ff0680f08583ec749d59a3eca42cddd0ba4b..4e232b5731f6fca2283b61c717af494e8b0e3193 100644
(file)
--- 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
;
}