test build 2
This commit is contained in:
parent
3420cae9a2
commit
8cfd37b6f5
2 changed files with 10 additions and 6 deletions
|
|
@ -382,10 +382,14 @@ bool FurnaceGUIRenderDX9::init(SDL_Window* win, int swapInt) {
|
|||
HRESULT result=iface->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,window,D3DCREATE_HARDWARE_VERTEXPROCESSING,&priv->present,&device);
|
||||
|
||||
if (result!=D3D_OK) {
|
||||
logE("could not create device! %.8x",result);
|
||||
iface->Release();
|
||||
iface=NULL;
|
||||
return false;
|
||||
logW("no hardware vertex processing!");
|
||||
result=iface->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,window,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&priv->present,&device);
|
||||
if (result!=D3D_OK) {
|
||||
logE("could not create device! %.8x",result);
|
||||
iface->Release();
|
||||
iface=NULL;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
D3DCAPS9 caps;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue