diff options
author | Brian Paul <[email protected]> | 2018-01-18 13:51:06 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-24 10:12:49 -0700 |
commit | 04a17ec32765bd50cec517f4f92879f0b7e227e3 (patch) | |
tree | 4fdc181204ac2a5f5369651a9e521833e4a29ef2 /src/mesa/drivers/dri/nouveau | |
parent | 7b0ae96711032a99a0b74a4c4a01d086f01a9f0c (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_context.c | 3 |
1 files changed, 1 insertions, 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); |