Introduce ColorMode
for Atlas
This commit is contained in:
parent
80e8465af6
commit
9f82af4f7d
3 changed files with 83 additions and 13 deletions
|
@ -147,7 +147,7 @@ impl TextRenderer {
|
|||
&image.data,
|
||||
ImageDataLayout {
|
||||
offset: 0,
|
||||
bytes_per_row: Some(width as u32 * inner.num_atlas_channels as u32),
|
||||
bytes_per_row: Some(width as u32 * inner.num_channels() as u32),
|
||||
rows_per_image: None,
|
||||
},
|
||||
Extent3d {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue