Moved glCreateProgram outside of a function