Hi Fabian.
I tested with the stonehenge-Demo from www.ogre3d.org (DX9)
Tested with current HEAD: WINEDEBUG="+x11drv,+d3d,+d3d_caps,+opengl,+wgl,+fps" wine \ explorer.exe /desktop=xxx,800x600 Magic_of_stonehenge.exe
trace:d3d:IWineD3DImpl_FillGLCaps FOUND (fake) card: 0x1002 (vendor id), 0x4144 (device id)
trace:d3d:IWineD3DDeviceImpl_GetAvailableTextureMem (0x18a3c0) : emulating 0Mib, returning 0Mib Detected DirectDraw driver DirectDraw HAL ----- DirectDraw Detection Ends
This was with your Patch and it breaks the Demo.
The clean Tree returns 64MB and the Demo runs.
(Has visual errors, which where not present 2 weeks ago, but moving wgl/opengl to winex11.drv is still in progress)