File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -372,9 +372,26 @@ auto mir::DefaultServerConfiguration::the_rendering_platforms() ->
372
372
373
373
rendering_platforms.reserve (rendering_platform_map.size ());
374
374
375
+ // We want to make the egl-generic platform the last resort
376
+ // So don't push it into rendering_platforms until the rest are done
377
+ std::shared_ptr<graphics::RenderingPlatform> egl_generic;
378
+
375
379
for (auto const & rp : rendering_platform_map)
376
380
{
377
- rendering_platforms.push_back (rp.second );
381
+ if (rp.first != " mir:egl-generic" )
382
+ {
383
+ rendering_platforms.push_back (rp.second );
384
+ }
385
+ else
386
+ {
387
+ egl_generic = rp.second ;
388
+ }
389
+ }
390
+
391
+ // If we skipped egl-generic, add it to the end
392
+ if (egl_generic)
393
+ {
394
+ rendering_platforms.push_back (egl_generic);
378
395
}
379
396
380
397
if (rendering_platforms.empty ())
You can’t perform that action at this time.
0 commit comments