Hi!
Couple of things you needed:
1) A means of exiting the game. For testing I just put your terminate sub into the Form_Click event
2) A seperate sub to initialize your offscreen surfaces, so if you've lost them you can call the sub to re-load them.
You don't need to do this for the Primary or attached backbuffer, that's why i seperated it from your Init DX code.
Here are the changes![]()




Reply With Quote