mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-27 21:48:29 +00:00
Added properties for the swap chain in the direct3d11 and direct3d12 renderers
Fixes https://github.com/libsdl-org/SDL/issues/9775
This commit is contained in:
@@ -1318,6 +1318,8 @@ static HRESULT D3D12_CreateSwapChain(SDL_Renderer *renderer, int w, int h)
|
||||
result = DXGI_ERROR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
SDL_SetProperty(SDL_GetRendererProperties(renderer), SDL_PROP_RENDERER_D3D12_SWAPCHAIN_POINTER, data->swapChain);
|
||||
|
||||
done:
|
||||
SAFE_RELEASE(swapChain);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user