Problem with D3D9 CreateDevice

Mark Hatsell mark.hatsell at btinternet.com
Wed Sep 28 11:36:05 CDT 2005


Hello

I am trying to get an application I have written
working under Wine. My application uses Direct3D v.9
which is causing a problem. I am using the latest CVS
version of Wine under Mandriva Linux 10.2.

The problem I have is that when I try to create the 3D
device using CreateDevice, it fails and I get the
following output from Wine debugging:

fixme:d3d:IWineD3DImpl_GetDeviceCaps Caps support for
directx9 is nonexistent at the moment!
fixme:d3d:IWineD3DImpl_CheckDeviceMultiSampleType
Quality levels unsupported at present
trace:d3d:IWineD3DImpl_CreateDevice Created
WineD3DDevice object @ 0x79b7ec78
trace:d3d:IWineD3DImpl_AddRef (0x7bcb1890) : AddRef
increasing from 1
trace:d3d:IWineD3DImpl_CreateDevice
(0x7bcb1890)->(Adptr:0, DevType: 1, FocusHwnd:
0x50060, BehFlags: 42, PresParms: 0x7baeb0ec,
RetDevInt: 0x78d56ea8)
trace:d3d:IWineD3DImpl_CreateDevice
(0x7bcb1890)->(DepthStencil:(80,WINED3DFMT_D16),
BackBufferFormat:(23,WINED3DFMT_R5G6B5))
trace:d3d:IWineD3DImpl_CreateDevice (0x7bcb1890) :
Creating stateblock
trace:d3d:IWineD3DImpl_CreateDevice (0x7bcb1890) :
Created stateblock (0x79bbf6a0)
trace:d3d:IWineD3DStateBlockImpl_AddRef (0x79bbf6a0) :
AddRef increasing from 1
trace:d3d:IWineD3DImpl_CreateDevice Creating implicit
swapchain
trace:d3d:IWineD3DDeviceImpl_CreateAdditionalSwapChain
(0x79b7ec78) : Created Aditional Swap Chain
trace:d3d:IWineD3DDeviceImpl_CreateAdditionalSwapChain
Using a display of 0x7c017628 0x4284
warn:d3d:IWineD3DDeviceImpl_CreateAdditionalSwapChain
Failed to get a valid XVisuial ID for the window
0x50060
fixme:d3d9:IDirect3DDevice9Impl_CreateAdditionalSwapChain
(0x78d56ea0) call to
IWineD3DDevice_CreateAdditionalSwapChainfailed
warn:d3d:IWineD3DImpl_CreateDevice Failed to create
implicit swapchain
trace:d3d:IWineD3DStateBlockImpl_Release (0x79bbf6a0)
: Releasing from 2
trace:d3d:IWineD3DStateBlockImpl_Release (0x79bbf6a0)
: Releasing from 1
fixme:d3d:IWineD3DStateBlockImpl_Release Releasing
primary stateblock


I have located the source of the error in device.c
which seems to be something to do with it not having a
valid X11 window. However, at this point my lack of
Wine knowledge prevents me from getting any further.
Has anyone any idea what might be causing this problem
and what I can do to fix it?

Any help much appreciated.

Mark







More information about the wine-devel mailing list