mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Slightly simplifies TextureBuilder arithmetic.
This commit is contained in:
parent
185a699279
commit
b5b6219cb7
@ -72,7 +72,7 @@ uint8_t *TextureBuilder::allocate_write_area(size_t required_length, size_t requ
|
||||
size_t alignment_offset = (required_alignment - ((write_areas_start_x_ + 1) % required_alignment)) % required_alignment;
|
||||
if(write_areas_start_x_ + required_length + 2 + alignment_offset > InputBufferBuilderWidth) {
|
||||
write_areas_start_x_ = 0;
|
||||
alignment_offset = (required_alignment - 1) % required_alignment;
|
||||
alignment_offset = required_alignment - 1;
|
||||
write_areas_start_y_ = (write_areas_start_y_ + 1) % InputBufferBuilderHeight;
|
||||
|
||||
if(write_areas_start_y_ == first_unsubmitted_y_) {
|
||||
|
Loading…
Reference in New Issue
Block a user