Code reindentation and cleanup
Fixed bug that caused rendering to get glitched when compiling with something else than MSVC.
Merge remote-tracking branch 'origin/dev' into dev