mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Remove legacy clone when uploading webgl texture
This commit is contained in:
@@ -129,9 +129,6 @@ impl Painter {
|
||||
let gl = &self.gl;
|
||||
gl.bind_texture(Gl::TEXTURE_2D, Some(&self.texture));
|
||||
|
||||
// TODO: remove once https://github.com/rustwasm/wasm-bindgen/issues/1005 is fixed.
|
||||
let mut pixels: Vec<_> = texture.pixels.to_vec();
|
||||
|
||||
let level = 0;
|
||||
let internal_format = Gl::ALPHA;
|
||||
let border = 0;
|
||||
@@ -146,7 +143,7 @@ impl Painter {
|
||||
border,
|
||||
src_format,
|
||||
src_type,
|
||||
Some(&mut pixels),
|
||||
Some(&texture.pixels),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user