mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
webgl: texture: Make initialize only mark as initialized the current face
Also refactor a bit the code, and remove the unused `is_initialized` flag.
This commit is contained in:
parent
21e2f97cfa
commit
d152c7fe88
2 changed files with 31 additions and 15 deletions
|
@ -389,7 +389,8 @@ impl WebGLRenderingContext {
|
|||
// TODO(emilio): Flip Y axis if necessary here
|
||||
|
||||
// TexImage2D depth is always equal to 1
|
||||
handle_potential_webgl_error!(self, texture.initialize(width as u32,
|
||||
handle_potential_webgl_error!(self, texture.initialize(target,
|
||||
width as u32,
|
||||
height as u32, 1,
|
||||
internal_format,
|
||||
level as u32));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue