Revert "(D3D) Buildfix"

This reverts commit 3c02410841f12f0f17a9ec7aa37ec3a0e3ed9f81.
This commit is contained in:
twinaphex 2015-11-17 13:44:14 +01:00
parent 3c02410841
commit 7205917560
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ static bool d3d_restore_device(LPDIRECT3DDEVICE dev)
}
bool d3d_create_device(unsigned monitor_id, D3DPRESENT_PARAMETERS *d3dpp,
LPDIRECT3D adapter, LPDIRECT3DDEVICE *dev, HWND window)
LPDIRECT3D adapter, LPDIRECT3DDEVICE dev, HWND window)
{
HRESULT err;
@ -43,7 +43,7 @@ bool d3d_create_device(unsigned monitor_id, D3DPRESENT_PARAMETERS *d3dpp,
window,
D3DCREATE_HARDWARE_VERTEXPROCESSING,
d3dpp,
(D3DDevice**)&dev)))
dev)))
{
RARCH_WARN("[D3D]: Failed to init device with hardware vertex processing (code: 0x%x). Trying to fall back to software vertex processing.\n",
(unsigned)err);
@ -54,7 +54,7 @@ bool d3d_create_device(unsigned monitor_id, D3DPRESENT_PARAMETERS *d3dpp,
window,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
d3dpp,
(D3DDevice**)&dev)))
dev)))
{
RARCH_ERR("Failed to initialize device.\n");
return false;

View File

@ -113,7 +113,7 @@ void d3d_set_render_state(void *data, D3DRENDERSTATETYPE state, DWORD value);
bool d3d_reset(LPDIRECT3DDEVICE dev, D3DPRESENT_PARAMETERS *d3dpp);
bool d3d_create_device(unsigned monitor_id, D3DPRESENT_PARAMETERS *d3dpp,
LPDIRECT3D adapter, LPDIRECT3DDEVICE *dev, HWND window);
LPDIRECT3D adapter, LPDIRECT3DDEVICE dev, HWND window);
#ifdef __cplusplus
}