WinRT: suppressed an unused param warning when building for Windows Phone 8.1
authorDavid Ludwig <dludwig@pobox.com>
Wed, 30 Apr 2014 21:12:47 -0400
changeset 8748 7ba9c0a0cad7
parent 8747 b4a56c2ca0f0
child 8749 f34996d809b7
WinRT: suppressed an unused param warning when building for Windows Phone 8.1
src/render/direct3d11/SDL_render_d3d11.c
--- a/src/render/direct3d11/SDL_render_d3d11.c	Wed Apr 30 21:07:30 2014 -0400
+++ b/src/render/direct3d11/SDL_render_d3d11.c	Wed Apr 30 21:12:47 2014 -0400
@@ -2899,6 +2899,8 @@
     HRESULT result;
     DXGI_PRESENT_PARAMETERS parameters;
 
+    SDL_zero(parameters);
+
 #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
     syncInterval = 1;
     presentFlags = 0;
@@ -2916,7 +2918,6 @@
      * 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