Hi guys.
My app chooses whether to render the scene depending on whether the window is in focus, like the following:
...
engine->Update();
pVoid_UserUpdate();
if (GetActiveWindow() == hWnd) engine->RenderFrame();
...
It works ok, just it bugs out when I re focus the window after a while, it may take quite a long time before responding, debugging shows that when re focusing it, the engine->RenderFrame(); is called, but nothing is shown on the screen, and it even sometimes goes into a complete retard stage and never exits this function, while allocating tons of memory (Jumps up and down forever and sometimes goes to 1.8-2 gb memory usage and just stops working correctly ):
devcon->PSSetShaderResources(7, 1, &pRes_NULL);
What could be the cause of this? Do I need to supply you with some more information about this issue?
Thank you for your time.
-MIGI0027