Fixed a bug in oglwrap.