Remember to turn off has_metacube_header once we have consumed a block.
[cubemap] / input.cpp
index a1b71d6..4846566 100644 (file)
--- a/input.cpp
+++ b/input.cpp
@@ -136,6 +136,7 @@ void Input::curl_callback(char *ptr, size_t bytes)
                // should we have many blocks, but these routines don't need to be too efficient
                // anyway.
                pending_data.erase(pending_data.begin(), pending_data.begin() + sizeof(metacube_block_header) + size);
+               has_metacube_header = false;
        }
 }