Fixed many GL issues, potential pointer casting problems, added some documentation to explain the fixed capture resolutions at play.