Fix for building with Visual Studio
authorSam Lantinga <slouken@libsdl.org>
Thu, 19 Jan 2012 20:25:09 -0500
changeset 6236 4a7abc1b6b0e
parent 6235 d169541f5049
child 6237 240f1bced46b
Fix for building with Visual Studio
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Thu Jan 19 01:55:51 2012 -0500
+++ b/src/render/direct3d/SDL_render_d3d.c	Thu Jan 19 20:25:09 2012 -0500
@@ -573,6 +573,7 @@
 {
     D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
     D3D_TextureData *texturedata;
+    D3DMATRIX matrix;
     HRESULT result;
 
     if (!renderer) return -1;
@@ -590,7 +591,6 @@
     }
 
     /* Prepare an identity world and view matrix */
-    D3DMATRIX matrix;
     matrix.m[0][0] = 1.0f;
     matrix.m[0][1] = 0.0f;
     matrix.m[0][2] = 0.0f;