Moved checkGlError to context.cpp and renamed it to printGlError.