[Mesa-dev] [PATCH 08/17] nouveau: remove vbo_context() call
Brian Paul
brianp at vmware.com
Fri Jan 19 17:46:58 UTC 2018
_vbo_DestroyContext() can be safely called even if there's no VBO
module. Removes a dependency on the vbo_context() function.
---
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 397e396..5fab81d 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);
--
2.7.4
More information about the mesa-dev
mailing list