Skip to content

Commit

Permalink
Make it clear we're just returning a D3D9 device, allowing for new fu…
Browse files Browse the repository at this point in the history
…nctions to get other D3D versions
  • Loading branch information
slouken committed Sep 28, 2013
1 parent cf5e5a8 commit 25f607a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/SDL_system.h
Expand Up @@ -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__ */

Expand Down
2 changes: 1 addition & 1 deletion src/render/direct3d/SDL_render_d3d.c
Expand Up @@ -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;

Expand Down

0 comments on commit 25f607a

Please sign in to comment.