Commit 91b039027f3c6f98c7692790ca7fcdf84a709b7a

David Ludwig 2013-08-28T12:45:43

WinRT: removed a comment regarding a dealt-with TODO

diff --git a/src/render/direct3d11/SDL_render_d3d11.cpp b/src/render/direct3d11/SDL_render_d3d11.cpp
index 1de471a..44032dd 100644
--- a/src/render/direct3d11/SDL_render_d3d11.cpp
+++ b/src/render/direct3d11/SDL_render_d3d11.cpp
@@ -793,6 +793,9 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
 #if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
     // Set the proper orientation for the swap chain, and generate the
     // 3D matrix transformation for rendering to the rotated swap chain.
+    //
+    // To note, his operation is not necessary on Windows Phone, nor is it
+    // even supported there.  It's only needed in Windows 8/RT.
     DXGI_MODE_ROTATION rotation = DXGI_MODE_ROTATION_UNSPECIFIED;
     switch (data->orientation)
     {
@@ -816,7 +819,6 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
             throw ref new Platform::FailureException();
     }
 
-    // TODO, WinRT: Windows Phone does not have the IDXGISwapChain1::SetRotation method.  Check if an alternative is available, or needed.
     result = data->swapChain->SetRotation(rotation);
     if (FAILED(result)) {
         WIN_SetErrorFromHRESULT(__FUNCTION__, result);