On Wed Mar 20 21:34:01 2024 +0000, Stefan Dösinger wrote:
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?
I have almost finished the update which implements that properly with deduplicating states per d3d device, hoping to finalize a bit of more tests and send that soon. Some bit of ad-hoc testing (on Win10) shows that state per different d3d devices is independent (which, well, was easy to expect).
WRT Sim City 3000 Building Architect, it just doesn't destroy one device before creating another and never uses first device later, almost anything which will let another device be created and function will let it work.