Detecting GL errors better