Check GL errors