added check for GL errors