Skip to content

Commit 2b8fa94

Browse files
committed
render: Set SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION to true
1 parent 6cf39ee commit 2b8fa94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/render/gpu/SDL_render_gpu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,9 @@ static bool GPU_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL_P
16891689
SDL_SetBooleanProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_DEBUGMODE_BOOLEAN, debug);
16901690
SDL_SetBooleanProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_PREFERLOWPOWER_BOOLEAN, lowpower);
16911691

1692+
// We have our own software renderer, skip software-based Vulkan drivers
1693+
SDL_SetBooleanProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION, true);
1694+
16921695
// Set hints for the greatest hardware compatibility
16931696
// This property allows using the renderer on Intel Haswell and Broadwell GPUs.
16941697
if (!SDL_HasProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_D3D12_ALLOW_FEWER_RESOURCE_SLOTS_BOOLEAN)) {

0 commit comments

Comments
 (0)