Fix FBO in thread_wrapper.