Remove legacy clone when uploading webgl texture
This commit is contained in:
parent
680d1888da
commit
c8c4a18786
1 changed files with 1 additions and 4 deletions
|
@ -129,9 +129,6 @@ impl Painter {
|
||||||
let gl = &self.gl;
|
let gl = &self.gl;
|
||||||
gl.bind_texture(Gl::TEXTURE_2D, Some(&self.texture));
|
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 level = 0;
|
||||||
let internal_format = Gl::ALPHA;
|
let internal_format = Gl::ALPHA;
|
||||||
let border = 0;
|
let border = 0;
|
||||||
|
@ -146,7 +143,7 @@ impl Painter {
|
||||||
border,
|
border,
|
||||||
src_format,
|
src_format,
|
||||||
src_type,
|
src_type,
|
||||||
Some(&mut pixels),
|
Some(&texture.pixels),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue