On Wed Mar 20 21:29:14 2024 +0000, Stefan Dösinger wrote:
Re the question if state shouldn't be specific to a d3d device: Yes, I guess in theory, but I have never seen an application try to create two IDirect3DDevices for the same IDirectDraw object. Knowing how easy it is to crash your process or even BSOD Windows with doing a lot less weird ddraw things, I decided to ignore the problem until we find an app that actually tries to do this kind of thing.
Now I should have looked at the actual commits before commenting...
I'll give those tests a try on Windows XP tomorrow and see what happens.
There are other possibilities to consider: What kind of devices does Sim City 3000 Building Architect create? Are they HW devices, or RGB ones (aka software)? Is there maybe a refcounting bug that keeps the old device alive even though it shouldn't? Might it be happy with a different return value?