We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351a364 commit 5a2c304Copy full SHA for 5a2c304
axmol/rhi/DriverContext.cpp
@@ -99,9 +99,9 @@ void DriverContext::makeCurrentDriver()
99
100
for (auto& f : factories)
101
{
102
- auto driver = f->create();
103
- if (contextAttrs.driverPreference != DriverPreference::Auto && driver->type() != contextAttrs.driverPreference)
+ if (contextAttrs.driverPreference != DriverPreference::Auto && f->type() != contextAttrs.driverPreference)
104
continue;
+ auto driver = f->create();
105
if (driver->init())
106
107
_currentDriverType = driver->type();
0 commit comments