Fixed Windows build
authorSam Lantinga <slouken@libsdl.org>
Sat, 17 Aug 2013 17:14:15 -0700
changeset 7651 e36a26e969c7
parent 7650 cd3465de2f42
child 7652 cf8970659129
Fixed Windows build
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Sat Aug 17 17:04:14 2013 -0700
+++ b/src/render/direct3d/SDL_render_d3d.c	Sat Aug 17 17:14:15 2013 -0700
@@ -398,7 +398,9 @@
 static void
 D3D_InitRenderState(D3D_RenderData *data)
 {
-    Direct3DDevice9 *device = data->device;
+    D3DMATRIX matrix;
+
+    IDirect3DDevice9 *device = data->device;
 
     IDirect3DDevice9_SetVertexShader(device, NULL);
     IDirect3DDevice9_SetFVF(device, D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1);
@@ -542,7 +544,6 @@
     Uint32 window_flags;
     int w, h;
     SDL_DisplayMode fullscreen_mode;
-    D3DMATRIX matrix;
     int d3dxVersion;
     char d3dxDLLFile[50];