src/render/direct3d11/SDL_render_d3d11.c
changeset 8748 7ba9c0a0cad7
parent 8728 c7174f961388
child 8755 f2fc45874b9c
     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