check GL errors