From 04a17ec32765bd50cec517f4f92879f0b7e227e3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 18 Jan 2018 13:51:06 -0700 Subject: 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 --- src/mesa/drivers/dri/nouveau/nouveau_context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- cgit v1.2.3