From: Brian Paul Date: Thu, 18 Jan 2018 20:51:06 +0000 (-0700) Subject: nouveau: remove vbo_context() call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04a17ec32765bd50cec517f4f92879f0b7e227e3;p=mesa.git nouveau: remove vbo_context() call _vbo_DestroyContext() can be safely called even if there's no VBO module. Removes a dependency on the vbo_context() function. Reviewed-by: Roland Scheidegger --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c index 397e39603d2..5fab81d8663 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -202,8 +202,7 @@ nouveau_context_deinit(struct gl_context *ctx) if (TNL_CONTEXT(ctx)) _tnl_DestroyContext(ctx); - if (vbo_context(ctx)) - _vbo_DestroyContext(ctx); + _vbo_DestroyContext(ctx); if (SWRAST_CONTEXT(ctx)) _swrast_DestroyContext(ctx);