mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(XDK) Buildfixes
This commit is contained in:
parent
c398db76d4
commit
59b5ecf7db
@ -1191,10 +1191,16 @@ bool d3d_set_vertex_shader_constantf(LPDIRECT3DDEVICE dev,
|
||||
#ifdef __cplusplus
|
||||
return (dev->SetVertexShaderConstantF(
|
||||
start_register, constant_data, vector4f_count) == D3D_OK);
|
||||
#else
|
||||
#ifdef _XBOX
|
||||
IDirect3DDevice9_SetVertexShaderConstantF(dev,
|
||||
start_register, constant_data, vector4f_count);
|
||||
return true;
|
||||
#else
|
||||
return (IDirect3DDevice9_SetVertexShaderConstantF(dev,
|
||||
start_register, constant_data, vector4f_count) == D3D_OK);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
@ -1231,8 +1237,13 @@ bool d3d_get_render_state(void *data, D3DRENDERSTATETYPE state, DWORD *value)
|
||||
return false;
|
||||
|
||||
#if defined(HAVE_D3D9) && !defined(__cplusplus)
|
||||
#ifdef _XBOX
|
||||
IDirect3DDevice9_GetRenderState(dev, state, value);
|
||||
return true;
|
||||
#else
|
||||
if (IDirect3DDevice9_GetRenderState(dev, state, value) == D3D_OK)
|
||||
return true;
|
||||
#endif
|
||||
#elif defined(HAVE_D3D8) && !defined(__cplusplus)
|
||||
if (IDirect3DDevice8_GetRenderState(dev, state, value) == D3D_OK)
|
||||
return true;
|
||||
|
@ -1727,9 +1727,11 @@ static void video_texture_load_d3d(d3d_video_t *d3d,
|
||||
LPDIRECT3DTEXTURE tex = NULL;
|
||||
unsigned usage = 0;
|
||||
|
||||
#ifndef _XBOX
|
||||
if((filter_type == TEXTURE_FILTER_MIPMAP_LINEAR) ||
|
||||
(filter_type == TEXTURE_FILTER_MIPMAP_NEAREST))
|
||||
usage |= D3DUSAGE_AUTOGENMIPMAP;
|
||||
#endif
|
||||
|
||||
tex = d3d_texture_new(d3d->dev, NULL,
|
||||
ti->width, ti->height, 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user