Call AddRef() on the device so it doesn't accidentally get released from underneath the caller.
This commit is contained in:
parent
25f607a3c2
commit
202528a48f
2 changed files with 10 additions and 2 deletions
|
@ -49,7 +49,9 @@ extern "C" {
|
|||
*/
|
||||
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. */
|
||||
/* Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer.
|
||||
Once you are done using the device, you should release it to avoid a resource leak.
|
||||
*/
|
||||
typedef struct IDirect3DDevice9 IDirect3DDevice9;
|
||||
extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3D9Device(SDL_Renderer * renderer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue