aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <me@emiliocobos.me>2016-04-20 20:27:37 +0200
committerEmilio Cobos Álvarez <me@emiliocobos.me>2016-04-20 20:27:37 +0200
commitd152c7fe8848bb2e75384f59b42516a1c9e3b41d (patch)
tree835fe0b019368178bdae6b4c2584b86271838a45 /components/script/dom/webglrenderingcontext.rs
parent21e2f97cfaf805c9e8f53e515c717ad263d3b891 (diff)
downloadservo-d152c7fe8848bb2e75384f59b42516a1c9e3b41d.tar.gz
servo-d152c7fe8848bb2e75384f59b42516a1c9e3b41d.zip
webgl: texture: Make initialize only mark as initialized the current face
Also refactor a bit the code, and remove the unused `is_initialized` flag.
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r--components/script/dom/webglrenderingcontext.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index 51a53cb3435..9e6a0d806dd 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -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));