mesa: Fix broken call to print_table_stats
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 10 Sep 2013 16:43:56 +0000 (11:43 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 19 Sep 2013 22:15:09 +0000 (17:15 -0500)
The function takes a parameter, but none was given.  Also, in the
non-GET_DEBUG case, silence the unused parameter warning.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/get.c

index 34eb6beb8a94ea39f3088513fbc4bb9a499f1c27..d9499ccf2b8aa1ea93b10f41a760c609ec4a84d9 100644 (file)
@@ -508,7 +508,9 @@ print_table_stats(int api)
 void _mesa_init_get_hash(struct gl_context *ctx)
 {
 #ifdef GET_DEBUG
-   print_table_stats();
+   print_table_stats(ctx->API);
+#else
+   (void) ctx;
 #endif
 }