From: Jeremy Huddleston Date: Mon, 13 Jun 2011 19:13:44 +0000 (-0700) Subject: glx: Remove check for gc->vtable->destroy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=816b8acfe81d5e2d666eb926f669d6015df0bbac;p=mesa.git 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 --- 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