Original Post
How do I get TestCooperativeLevel() to return D3D_OK again? I've tried a bunch of different combinations. What I get with this and everything else I've tried is once TestCooperativeLevel() goes bad it stays bad then from there on out it's releasing and recreating every cycle there after. Originally I did have the tests as the first thing in my cycles it's only like this because just playing with it trying to get it to work. [C++, ALT+TAB Problem]; [Edited by - STRATERCAS on September 15, 2005 4:35:21 AM]
if(d3ddev->Present(NULL,NULL,NULL,NULL) == D3DERR_DEVICELOST)
{
if(d3ddev->TestCooperativeLevel() == D3DERR_DEVICENOTRESET)
{
ReleaseSurfaces();
d3ddev->Reset(&d3dpp);
LoadSurfaces();
}
}