From ec5f6ad5955c413c0fb42dc2c6d4ecaaff49db23 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Wed, 30 Apr 2014 21:12:47 -0400 Subject: [PATCH] WinRT: suppressed an unused param warning when building for Windows Phone 8.1 --- src/render/direct3d11/SDL_render_d3d11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render/direct3d11/SDL_render_d3d11.c b/src/render/direct3d11/SDL_render_d3d11.c index 27ca61f66..1e2b09992 100644 --- a/src/render/direct3d11/SDL_render_d3d11.c +++ b/src/render/direct3d11/SDL_render_d3d11.c @@ -2899,6 +2899,8 @@ D3D11_RenderPresent(SDL_Renderer * renderer) HRESULT result; DXGI_PRESENT_PARAMETERS parameters; + SDL_zero(parameters); + #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP syncInterval = 1; presentFlags = 0; @@ -2916,7 +2918,6 @@ D3D11_RenderPresent(SDL_Renderer * renderer) * rects to improve efficiency in certain scenarios. * This option is not available on Windows Phone 8, to note. */ - SDL_zero(parameters); result = IDXGISwapChain1_Present1(data->swapChain, syncInterval, presentFlags, ¶meters); #endif