mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Fixed SpriteBatch:set and Mesh:setVertex preventing some vertex data from being sent to the GPU.
This commit is contained in:
@@ -163,7 +163,7 @@ void GLBuffer::setMappedRangeModified(size_t offset, size_t modifiedsize)
|
|||||||
// from the start of section a to the end of section b as modified if both
|
// from the start of section a to the end of section b as modified if both
|
||||||
// a and b are marked as modified.
|
// a and b are marked as modified.
|
||||||
|
|
||||||
size_t old_range_end = modified_offset + modified_offset;
|
size_t old_range_end = modified_offset + modified_size;
|
||||||
|
|
||||||
modified_offset = std::min(modified_offset, offset);
|
modified_offset = std::min(modified_offset, offset);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user