diff --git a/pressure-vessel/runtime.c b/pressure-vessel/runtime.c
index 426374da865a95805235a4ca6ee09c7e17224737..1c06eae55c2c80cb613f3838f8e71cfa491b34c4 100644
--- a/pressure-vessel/runtime.c
+++ b/pressure-vessel/runtime.c
@@ -1337,7 +1337,6 @@ pv_runtime_get_capsule_capture_libs (PvRuntime *self,
 static gboolean
 try_bind_dri (PvRuntime *self,
               RuntimeArchitecture *arch,
-              FlatpakBwrap *bwrap,
               const char *libdir,
               GError **error)
 {
@@ -3525,7 +3524,7 @@ pv_runtime_use_provider_graphics_stack (PvRuntime *self,
            * checked later will overwrite drivers checked earlier. */
           for (j = 0; j < dirs->len; j++)
             {
-              if (!try_bind_dri (self, arch, bwrap,
+              if (!try_bind_dri (self, arch,
                                  g_ptr_array_index (dirs, dirs->len - 1 - j),
                                  error))
                 return FALSE;