glx: Remove some can't-happen checks from protocolDestroyDrawable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17422>
This commit is contained in:
parent
cf0cfd572e
commit
61834ae898
|
@ -551,10 +551,6 @@ CreateDrawable(Display *dpy, struct glx_config *config,
|
|||
static void
|
||||
DestroyDrawable(Display * dpy, GLXDrawable drawable, CARD32 glxCode)
|
||||
{
|
||||
if ((dpy == NULL) || (drawable == 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
protocolDestroyDrawable(dpy, drawable, glxCode);
|
||||
|
||||
DestroyGLXDrawable(dpy, drawable);
|
||||
|
|
Loading…
Reference in New Issue