From 1455a94714735595ed27a79ec484583869577de8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 17 Aug 2013 17:14:15 -0700 Subject: [PATCH] Fixed Windows build --- src/render/direct3d/SDL_render_d3d.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c index 4333bad36..d1c0ac05b 100644 --- a/src/render/direct3d/SDL_render_d3d.c +++ b/src/render/direct3d/SDL_render_d3d.c @@ -398,7 +398,9 @@ D3DFMTToPixelFormat(D3DFORMAT format) 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 @@ D3D_CreateRenderer(SDL_Window * window, Uint32 flags) Uint32 window_flags; int w, h; SDL_DisplayMode fullscreen_mode; - D3DMATRIX matrix; int d3dxVersion; char d3dxDLLFile[50];