WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer
authorDavid Ludwig <dludwig@pobox.com>
Tue, 13 Aug 2013 20:33:15 -0400
changeset 8482 eb0b00e7519e
parent 8481 e412893178a8
child 8483 d403ded25942
WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer
src/render/direct3d11/SDL_render_d3d11.cpp
--- a/src/render/direct3d11/SDL_render_d3d11.cpp	Tue Aug 13 20:28:48 2013 -0400
+++ b/src/render/direct3d11/SDL_render_d3d11.cpp	Tue Aug 13 20:33:15 2013 -0400
@@ -69,6 +69,7 @@
 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 @@
     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 @@
     return 0;
 }
 
+static int
+D3D11_UpdateClipRect(SDL_Renderer * renderer)
+{
+    // TODO, WinRT: implement D3D11_UpdateClipRect
+    return 0;
+}
+
 static ComPtr<ID3D11RenderTargetView> &
 D3D11_GetCurrentRenderTargetView(SDL_Renderer * renderer)
 {