mirror of https://github.com/encounter/SDL.git
[KMSDRM] Add missing break and modify comments.
This commit is contained in:
parent
9172e413ad
commit
11cb53d2a5
|
@ -283,6 +283,8 @@ SDL_bool KMSDRM_Vulkan_CreateSurface(_THIS,
|
||||||
A machine with more than one video output doesn't need to have more than one GPU,
|
A machine with more than one video output doesn't need to have more than one GPU,
|
||||||
like the Pi4 which has 1 GPU and 2 video outputs.
|
like the Pi4 which has 1 GPU and 2 video outputs.
|
||||||
Just in case, we test that the GPU we choose is Vulkan-capable.
|
Just in case, we test that the GPU we choose is Vulkan-capable.
|
||||||
|
If there are new reports about VK init failures, hardcode
|
||||||
|
gpu = physical_devices[0], instead of probing, and go with that.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Get the physical device count. */
|
/* Get the physical device count. */
|
||||||
|
@ -313,6 +315,7 @@ SDL_bool KMSDRM_Vulkan_CreateSurface(_THIS,
|
||||||
{
|
{
|
||||||
gpu = physical_devices[i];
|
gpu = physical_devices[i];
|
||||||
valid_gpu = SDL_TRUE;
|
valid_gpu = SDL_TRUE;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue