Skip to content

Commit

Permalink
WinRT: suppressed an unused param warning when building for Windows P…
Browse files Browse the repository at this point in the history
…hone 8.1
  • Loading branch information
DavidLudwig committed May 1, 2014
1 parent c5c1a2c commit ec5f6ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/direct3d11/SDL_render_d3d11.c
Expand Up @@ -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;
Expand All @@ -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, &parameters);
#endif

Expand Down

0 comments on commit ec5f6ad

Please sign in to comment.