Removed window handle from most calls

Unuse
Sharing shaders
stuff