Removed old-style malloc statement.
Re-ordered attribute binding sequence and glUseProgram.