Fix build error on some platforms by re-using a value retrieved earlier when the GraphicsDevice was created.