mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
Merge #264
264: Use opaque texels in mipmap example r=kvark a=grovesNL This fixes rendering for the mipmap example in Nightly Co-authored-by: Joshua Groves <josh@joshgroves.com>
This commit is contained in:
commit
fe565e7cef
1 file changed
+1
-1
@@ -52,7 +52,7 @@ fn create_texels(size: usize, cx: f32, cy: f32) -> Vec<u8> {
|
||||
iter::once(0xFF - (count * 2) as u8)
|
||||
.chain(iter::once(0xFF - (count * 5) as u8))
|
||||
.chain(iter::once(0xFF - (count * 13) as u8))
|
||||
.chain(iter::once(1))
|
||||
.chain(iter::once(std::u8::MAX))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user