[Mesa-dev] [PATCH 9/9] mesa: Drop unnecessary (void) ctx from VAO code.

Kenneth Graunke kenneth at whitecape.org
Sat Feb 1 22:30:13 PST 2014


ctx is always used, even on release builds.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/main/arrayobj.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c
index acb1bf7..b33ba80 100644
--- a/src/mesa/main/arrayobj.c
+++ b/src/mesa/main/arrayobj.c
@@ -117,7 +117,6 @@ _mesa_new_vao(struct gl_context *ctx, GLuint name)
 void
 _mesa_delete_vao(struct gl_context *ctx, struct gl_vertex_array_object *obj)
 {
-   (void) ctx;
    unbind_array_object_vbos(ctx, obj);
    _mesa_reference_buffer_object(ctx, &obj->IndexBufferObj, NULL);
    _glthread_DESTROY_MUTEX(obj->Mutex);
-- 
1.8.5.2



More information about the mesa-dev mailing list