From: Steinar H. Gunderson Date: Sat, 6 Apr 2013 15:48:24 +0000 (+0200) Subject: Skip the Metacube header when adding data. X-Git-Tag: 1.0.0~217 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=0d11fa250f50792b1fdc384ca278d43552bdc92d;ds=sidebyside Skip the Metacube header when adding data. --- diff --git a/input.cpp b/input.cpp index 29e4ed3..d369194 100644 --- a/input.cpp +++ b/input.cpp @@ -91,7 +91,7 @@ void Input::curl_callback(char *ptr, size_t bytes) return; } - process_block(pending_data.data(), size, flags); + process_block(pending_data.data() + sizeof(metacube_block_header), size, flags); // Consume this block. This isn't the most efficient way of dealing with things // should we have many blocks, but these routines don't need to be too efficient