skip already checked preferred backend
continuous-integration/drone/push Build is passing Details

pull/23/head
cosmonaut 2022-09-28 12:14:06 -07:00
parent c0e4e50863
commit bacc3ed280
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ Refresh_Backend Refresh_SelectBackend(Refresh_Backend preferredBackend, uint32_t
for (i = 1; backends[i] != NULL; i += 1)
{
if (backends[i]->PrepareDriver(flags))
if (i != preferredBackend && backends[i]->PrepareDriver(flags))
{
selectedBackend = i;
return i;