Moved OnPresent so it will compile even without GL