File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,17 @@ auto mir::DefaultServerConfiguration::the_rendering_platforms() ->
295
295
bool found_supported_device{false };
296
296
for (auto & device : supported_devices)
297
297
{
298
- if (device.support_level >= mg::probe::supported)
298
+ if (device.support_level == mg::probe::best)
299
+ {
300
+ // In the case that we've discovered a best platform (most likely a hardware platform)
301
+ // then we abandon all other platforms.
302
+ // TODO: Remove me once a multi-rendering-platform paradigm is fully supported, and we
303
+ // don't just select the first (or last?) platform and use that everywhere.
304
+ platform_modules.clear ();
305
+ platform_modules.emplace_back (std::move (device), platform);
306
+ break ;
307
+ }
308
+ else if (device.support_level >= mg::probe::supported)
299
309
{
300
310
found_supported_device = true ;
301
311
}
You can’t perform that action at this time.
0 commit comments