Finalize current handling before render device restructuring.
Missing include breaks linux build.