drm: fix minor oopsie

This commit is contained in:
Vaxry 2024-06-28 18:33:16 +02:00
parent 9096cd0e8e
commit 8ecf8773db

View file

@ -200,7 +200,7 @@ std::vector<SP<CDRMBackend>> Aquamarine::CDRMBackend::attempt(SP<CBackend> 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