summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-06-13 12:13:44 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-06-13 14:51:01 -0700
commit816b8acfe81d5e2d666eb926f669d6015df0bbac (patch)
treec2d633b0da7eb498916e26926a3b142c6a96d7ac /src/glx
parentc6cf82fb553405bee241170f6e51cafd751d46ea (diff)
glx: Remove check for gc->vtable->destroy
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>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxcmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 774d38b2634..cd8bc97b192 100644
--- 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