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 87487ba9c0a0cad7
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
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.c	Wed Apr 30 21:07:30 2014 -0400
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.c	Wed Apr 30 21:12:47 2014 -0400
     1.3 @@ -2899,6 +2899,8 @@
     1.4      HRESULT result;
     1.5      DXGI_PRESENT_PARAMETERS parameters;
     1.6  
     1.7 +    SDL_zero(parameters);
     1.8 +
     1.9  #if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
    1.10      syncInterval = 1;
    1.11      presentFlags = 0;
    1.12 @@ -2916,7 +2918,6 @@
    1.13       * rects to improve efficiency in certain scenarios.
    1.14       * This option is not available on Windows Phone 8, to note.
    1.15       */
    1.16 -    SDL_zero(parameters);
    1.17      result = IDXGISwapChain1_Present1(data->swapChain, syncInterval, presentFlags, &parameters);
    1.18  #endif
    1.19