]> git.sesse.net Git - cubemap/commitdiff
Remember to turn off has_metacube_header once we have consumed a block.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Apr 2013 00:22:49 +0000 (02:22 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Apr 2013 00:22:49 +0000 (02:22 +0200)
input.cpp

index a1b71d618f4beeee42a7ec3431a89991901125ad..48465664b56bf7429f1023d44a4ec9d9b7b81f30 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;
        }
 }