Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 02 Dec 2018 21:57:33 -0500
changeset 124452cdb34815a86
parent 12444 088f52a4e1b2
child 12446 3da9ecf40a13
Patched to compile on C89 compilers.
src/render/direct3d/SDL_render_d3d.c
     1.1 --- a/src/render/direct3d/SDL_render_d3d.c	Sun Dec 02 20:55:57 2018 -0500
     1.2 +++ b/src/render/direct3d/SDL_render_d3d.c	Sun Dec 02 21:57:33 2018 -0500
     1.3 @@ -1546,6 +1546,7 @@
     1.4      D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
     1.5      HRESULT result;
     1.6      SDL_Texture *texture;
     1.7 +    int i;
     1.8  
     1.9      /* Release the default render target before reset */
    1.10      if (data->defaultRenderTarget) {
    1.11 @@ -1567,7 +1568,6 @@
    1.12      }
    1.13  
    1.14  	/* Release all vertex buffers */
    1.15 -    int i;
    1.16      for (i = 0; i < SDL_arraysize(data->vertexBuffers); ++i) {
    1.17          if (data->vertexBuffers[i]) {
    1.18              IDirect3DVertexBuffer9_Release(data->vertexBuffers[i]);