Update
This commit is contained in:
parent
b8253284e6
commit
86096e677c
|
@ -312,12 +312,14 @@ bool d3d_device_create_offscreen_plain_surface(
|
||||||
void **surf_data,
|
void **surf_data,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
if (FAILED(dev->CreateOffscreenPlainSurface(width, height,
|
#if defined(HAVE_D3D9)
|
||||||
|
if (SUCCEEDED(dev->CreateOffscreenPlainSurface(width, height,
|
||||||
(D3DFORMAT)format, (D3DPOOL)pool,
|
(D3DFORMAT)format, (D3DPOOL)pool,
|
||||||
(LPDIRECT3DSURFACE*)surf_data,
|
(LPDIRECT3DSURFACE*)surf_data,
|
||||||
(HANDLE*)data)))
|
(HANDLE*)data)))
|
||||||
return false;
|
return true;
|
||||||
return true;
|
#endif
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void d3d_set_texture_stage_state(LPDIRECT3DDEVICE dev,
|
static void d3d_set_texture_stage_state(LPDIRECT3DDEVICE dev,
|
||||||
|
|
Loading…
Reference in New Issue