Fix multiple issues from the refactoring
- Update texture view on grow - Fix atlas texture coordinates - Fix fragmented uploads
This commit is contained in:
parent
c58d94f3fd
commit
48d70280eb
4 changed files with 86 additions and 42 deletions
|
|
@ -83,10 +83,9 @@ impl Cache {
|
|||
if let Memory::Host(image) = memory {
|
||||
let (width, height) = image.dimensions();
|
||||
|
||||
let allocation =
|
||||
atlas.upload(width, height, &image, device, encoder)?;
|
||||
let entry = atlas.upload(width, height, &image, device, encoder)?;
|
||||
|
||||
*memory = Memory::Device(allocation);
|
||||
*memory = Memory::Device(entry);
|
||||
}
|
||||
|
||||
if let Memory::Device(allocation) = memory {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue