http://bugs.winehq.org/show_bug.cgi?id=7434
------- Additional Comments From stefandoesinger@gmx.at 2007-10-04 05:40 ------- I think this is a refcounting problem in d3d9. The device does not get destroyed, thus the context is not unset. When the new device is created, the context manager tries to restore the old context after setting up the new one(intended, the new context is finally set when used the first time. Unfortunately, by that time, the drawable is not valid any more -> bang
I have a patch for this, will send it later today to wine-patches