Commit b744108af81bfde3308e7e0a5f983d62912f2561

Ryan C. Gordon 2018-12-02T21:57:33

Patched to compile on C89 compilers.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c
index 7f7ba18..b934f4d 100644
--- a/src/render/direct3d/SDL_render_d3d.c
+++ b/src/render/direct3d/SDL_render_d3d.c
@@ -1546,6 +1546,7 @@ D3D_Reset(SDL_Renderer * renderer)
     D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
     HRESULT result;
     SDL_Texture *texture;
+    int i;
 
     /* Release the default render target before reset */
     if (data->defaultRenderTarget) {
@@ -1567,7 +1568,6 @@ D3D_Reset(SDL_Renderer * renderer)
     }
 
 	/* Release all vertex buffers */
-    int i;
     for (i = 0; i < SDL_arraysize(data->vertexBuffers); ++i) {
         if (data->vertexBuffers[i]) {
             IDirect3DVertexBuffer9_Release(data->vertexBuffers[i]);