diff --git a/src/render/direct3d11/SDL_render_d3d11.cpp b/src/render/direct3d11/SDL_render_d3d11.cpp index ed741c278..9d34d0d81 100644 --- a/src/render/direct3d11/SDL_render_d3d11.cpp +++ b/src/render/direct3d11/SDL_render_d3d11.cpp @@ -69,6 +69,7 @@ static int D3D11_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture, static void D3D11_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture); static int D3D11_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture); static int D3D11_UpdateViewport(SDL_Renderer * renderer); +static int D3D11_UpdateClipRect(SDL_Renderer * renderer); static int D3D11_RenderClear(SDL_Renderer * renderer); static int D3D11_RenderDrawPoints(SDL_Renderer * renderer, const SDL_FPoint * points, int count); @@ -176,6 +177,7 @@ D3D11_CreateRenderer(SDL_Window * window, Uint32 flags) renderer->UnlockTexture = D3D11_UnlockTexture; renderer->SetRenderTarget = D3D11_SetRenderTarget; renderer->UpdateViewport = D3D11_UpdateViewport; + renderer->UpdateClipRect = D3D11_UpdateClipRect; renderer->RenderClear = D3D11_RenderClear; renderer->RenderDrawPoints = D3D11_RenderDrawPoints; renderer->RenderDrawLines = D3D11_RenderDrawLines; @@ -1254,6 +1256,13 @@ D3D11_UpdateViewport(SDL_Renderer * renderer) return 0; } +static int +D3D11_UpdateClipRect(SDL_Renderer * renderer) +{ + // TODO, WinRT: implement D3D11_UpdateClipRect + return 0; +} + static ComPtr & D3D11_GetCurrentRenderTargetView(SDL_Renderer * renderer) {