mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(Xbox OG) Buildfixes
This commit is contained in:
parent
7a481236bf
commit
777e96f2ea
@ -57,6 +57,7 @@
|
||||
#define LPDIRECT3DCUBETEXTURE LPDIRECT3DCUBETEXTURE8
|
||||
#define LPDIRECT3DVOLUMETEXTURE LPDIRECT3DVOLUMETEXTURE8
|
||||
#define LPDIRECT3DVERTEXBUFFER LPDIRECT3DVERTEXBUFFER8
|
||||
#define LPDIRECT3DVERTEXDECLARATION (void*)
|
||||
#define LPDIRECT3DSURFACE LPDIRECT3DSURFACE8
|
||||
#define LPDIRECT3DRESOURCE LPDIRECT3DRESOURCE8
|
||||
#define D3DVERTEXELEMENT D3DVERTEXELEMENT8
|
||||
|
@ -217,7 +217,9 @@ void d3d_vertex_declaration_free(void *data)
|
||||
LPDIRECT3DVERTEXDECLARATION vertex_decl = (LPDIRECT3DVERTEXDECLARATION)data;
|
||||
if (!vertex_decl)
|
||||
return;
|
||||
#if defined(HAVE_D3D9) && !defined(__cplusplus)
|
||||
#if defined(HAVE_D3D8)
|
||||
/* empty */
|
||||
#elif defined(HAVE_D3D9) && !defined(__cplusplus)
|
||||
IDirect3DVertexDeclaration9_Release(vertex_decl);
|
||||
#else
|
||||
vertex_decl->Release();
|
||||
@ -798,10 +800,8 @@ void d3d_disable_blend_func(void *data)
|
||||
|
||||
void d3d_set_vertex_declaration(void *data, void *vertex_data)
|
||||
{
|
||||
LPDIRECT3DDEVICE dev = (LPDIRECT3DDEVICE)data;
|
||||
#if defined(HAVE_D3D9)
|
||||
LPDIRECT3DDEVICE dev = (LPDIRECT3DDEVICE)data;
|
||||
LPDIRECT3DVERTEXDECLARATION decl = (LPDIRECT3DVERTEXDECLARATION)vertex_data;
|
||||
#endif
|
||||
if (!dev)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user