1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-24 12:30:17 +00:00

Fixed start test and added incrementation of start locations.

This commit is contained in:
Thomas Harte 2016-12-06 08:08:57 -05:00
parent f388ba11cc
commit 60f9ddfde8

View File

@ -156,7 +156,7 @@ void TextureBuilder::flush(const std::function<void(const std::vector<WriteArea>
if(number_of_write_areas_ && !was_full) if(number_of_write_areas_ && !was_full)
{ {
if(write_areas_[0].x != write_areas_start_x_ || write_areas_[0].y != write_areas_start_y_) if(write_areas_[0].x != write_areas_start_x_+1 || write_areas_[0].y != write_areas_start_y_)
{ {
for(auto write_area : write_areas_) for(auto write_area : write_areas_)
{ {
@ -182,7 +182,12 @@ void TextureBuilder::flush(const std::function<void(const std::vector<WriteArea>
} }
if(!is_full_) if(!is_full_)
{
function(write_areas_, number_of_write_areas_); function(write_areas_, number_of_write_areas_);
write_areas_start_x_ = write_areas_[number_of_write_areas_-1].x + write_areas_[number_of_write_areas_-1].length + 1;
write_areas_start_y_ = write_areas_[number_of_write_areas_-1].y;
}
} }
did_submit_ = false; did_submit_ = false;