Bug fix! checkGlError works in releas mode.