Original Post
Howdy, I'm having a problem with Occlusion Queries. When I'm in windowed mode, everything works great. However, when I'm in fullscreen mode, I get random crashes when I release these queries. Each object in the game has its own Occlusion Query. I've tried a few approaches such as finalizing the queries before releasing them, but I still get the crashes. One hacky solution is to keep a pool of occlusion queries so that I don't release them as much, but I still get occasional crashes. *makes vomit gesture* I created my device with the D3DCREATE_MULTITHREADED flag. Also, I'm using the October 2006 DirectX SDK so that I can keep support for 1.1 shaders. I'm using an NVidia 8800 and Windows XP.