Fix -Wreorder warnings
Fix most compiler warnings in the GL3 renderer