I want to change some graphics settings and then call RestartGx().
If I DoString("change settings") from EndScene and then type /run RestartGx() in wow chat pane and then press Enter, it works good.
But if I DoString('RestartGx()') from EndScene, WoW window does not render anymore(it is probably related to dx device recreation). WoW does not crash and works as usual, except window is "empty" - it does not render itself.
Did anyone encountered this problem and solved it?
Should I debug my endscene hook or just use WM_ messages to execute RestartGx() through wow chat window?
Thx
Update(solution): do not call it from EndScene, either use lua event handler, or postmessage(did not like), or change settings in config file.