let window has its own device context
Merge pull request #59 from cdd990/dev

let window has its own device context