projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6cf82f
)
glx: Remove check for gc->vtable->destroy
author
Jeremy Huddleston
<jeremyhu@apple.com>
Mon, 13 Jun 2011 19:13:44 +0000
(12:13 -0700)
committer
Jeremy Huddleston
<jeremyhu@apple.com>
Mon, 13 Jun 2011 21:51:01 +0000
(14:51 -0700)
gc->vtable->destroy is always set and is used unconditionally
in other places, so don't bother checking for it first.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
src/glx/glxcmds.c
patch
|
blob
|
history
diff --git
a/src/glx/glxcmds.c
b/src/glx/glxcmds.c
index 774d38b2634180d393e508184f9aa135ad24082b..cd8bc97b1927407271ea980c3cb4b5dc2d767b5e 100644
(file)
--- a/
src/glx/glxcmds.c
+++ b/
src/glx/glxcmds.c
@@
-377,8
+377,7
@@
DestroyContext(Display * dpy, GLXContext ctx)
}
__glXUnlock();
- if (gc->vtable->destroy)
- gc->vtable->destroy(gc);
+ gc->vtable->destroy(gc);
}
_X_EXPORT void