Skip to content

Commit

Permalink
Fixed bug 2385 - error: unknown type name 'IDirect3DDevice9'
Browse files Browse the repository at this point in the history
Sandu Liviu Catalin

I'm unable to compile the latest SDL (directly from the repository) even though I disabled every DirectX option since I don't need DirectX.

I allways het these errors:
D:\DevLibs\SDL\src\render\direct3d\SDL_render_d3d.c:1897:1: error: unknown type name 'IDirect3DDevice9'
D:\DevLibs\SDL\src\render\direct3d\SDL_render_d3d.c:1898:25: error: unknown type name 'SDL_Renderer'
  • Loading branch information
slouken committed Feb 9, 2014
1 parent b331ada commit 3ab3ea6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/render/direct3d/SDL_render_d3d.c
Expand Up @@ -20,14 +20,16 @@
*/
#include "../../SDL_internal.h"

#include "SDL_render.h"
#include "SDL_system.h"

#if SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED

#include "../../core/windows/SDL_windows.h"

#include "SDL_hints.h"
#include "SDL_loadso.h"
#include "SDL_syswm.h"
#include "SDL_system.h"
#include "../SDL_sysrender.h"
#include "../../video/windows/SDL_windowsvideo.h"

Expand Down Expand Up @@ -1916,6 +1918,6 @@ SDL_RenderGetD3D9Device(SDL_Renderer * renderer)

return device;
}
#endif
#endif /* __WIN32__ */

/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit 3ab3ea6

Please sign in to comment.