mirror of https://github.com/encounter/SDL.git
WinRT: removed a comment regarding a dealt-with TODO
This commit is contained in:
parent
8e3886a279
commit
91b039027f
|
@ -793,6 +793,9 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
|
||||||
#if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
|
#if WINAPI_FAMILY != WINAPI_FAMILY_PHONE_APP
|
||||||
// Set the proper orientation for the swap chain, and generate the
|
// Set the proper orientation for the swap chain, and generate the
|
||||||
// 3D matrix transformation for rendering to the rotated swap chain.
|
// 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;
|
DXGI_MODE_ROTATION rotation = DXGI_MODE_ROTATION_UNSPECIFIED;
|
||||||
switch (data->orientation)
|
switch (data->orientation)
|
||||||
{
|
{
|
||||||
|
@ -816,7 +819,6 @@ D3D11_CreateWindowSizeDependentResources(SDL_Renderer * renderer)
|
||||||
throw ref new Platform::FailureException();
|
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);
|
result = data->swapChain->SetRotation(rotation);
|
||||||
if (FAILED(result)) {
|
if (FAILED(result)) {
|
||||||
WIN_SetErrorFromHRESULT(__FUNCTION__, result);
|
WIN_SetErrorFromHRESULT(__FUNCTION__, result);
|
||||||
|
|
Loading…
Reference in New Issue