diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 45169f1..02458e1 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -200,7 +200,7 @@ std::vector> Aquamarine::CDRMBackend::attempt(SP backe if (primary) drmBackend->primary = primary; - if (!drmBackend->registerGPU(gpus.at(0))) { + if (!drmBackend->registerGPU(gpu)) { backend->log(AQ_LOG_ERROR, std::format("drm: Failed to register gpu {}", gpu->path)); continue; } else