Actually fixed it! Use glutGet