From 25f607a3c27e0c815b90d22027b55783208223ca Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 28 Sep 2013 14:07:14 -0700 Subject: [PATCH] Make it clear we're just returning a D3D9 device, allowing for new functions to get other D3D versions --- include/SDL_system.h | 2 +- src/render/direct3d/SDL_render_d3d.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_system.h b/include/SDL_system.h index 5c3193739..1ca607fbf 100644 --- a/include/SDL_system.h +++ b/include/SDL_system.h @@ -51,7 +51,7 @@ extern DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex( int displayIndex ); /* Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer. */ typedef struct IDirect3DDevice9 IDirect3DDevice9; -extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3DDevice(SDL_Renderer * renderer); +extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3D9Device(SDL_Renderer * renderer); #endif /* __WIN32__ */ diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c index fdaf796b6..36205eb87 100644 --- a/src/render/direct3d/SDL_render_d3d.c +++ b/src/render/direct3d/SDL_render_d3d.c @@ -1884,7 +1884,7 @@ D3D_DestroyRenderer(SDL_Renderer * renderer) } IDirect3DDevice9 * -SDL_RenderGetD3DDevice(SDL_Renderer * renderer) +SDL_RenderGetD3D9Device(SDL_Renderer * renderer) { D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;