diff --git a/linux/request.cpp b/linux/request.cpp index 4d760656b..0c5eb4ac1 100644 --- a/linux/request.cpp +++ b/linux/request.cpp @@ -33,6 +33,7 @@ int Request::curl_progress_callback(void *ptr, double dltotal, double dlnow, dou void Request::initialize() { // curl init curl_global_init(CURL_GLOBAL_ALL); + curl_share = curl_share_init(); curl_share_setopt(curl_share, CURLSHOPT_LOCKFUNC, curl_share_lock); curl_share_setopt(curl_share, CURLSHOPT_UNLOCKFUNC, curl_share_unlock); diff --git a/src/style/sprite.cpp b/src/style/sprite.cpp index 70626ef39..2052c5437 100644 --- a/src/style/sprite.cpp +++ b/src/style/sprite.cpp @@ -90,8 +90,6 @@ void Sprite::parseJSON(const std::string& data) { if (value.HasMember("height")) height = value["height"].GetInt(); if (value.HasMember("pixelRatio")) pixelRatio = value["height"].GetInt(); - fprintf(stderr, ""); - pos.insert({ name, { x, y, width, height, pixelRatio } }); } } @@ -238,7 +236,7 @@ ImagePosition Sprite::getPosition(const std::string& name, bool repeating) { void Sprite::bind(bool linear) { if (!width || !height) { - fprintf(stderr, "trying to bind texture without dimension\n"); + // fprintf(stderr, "trying to bind texture without dimension\n"); return; }