aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2018-11-17 11:29:48 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2018-11-20 10:14:49 +0100
commit2a5539caeffcc7db910e8eb3e29365a028e86a44 (patch)
tree6157843ebcda9039decdaf235822ae96a35520b0 /components/canvas
parentf1dd31f70440fa9c7a40525bd1e03eede568f74d (diff)
downloadservo-2a5539caeffcc7db910e8eb3e29365a028e86a44.tar.gz
servo-2a5539caeffcc7db910e8eb3e29365a028e86a44.zip
Use Size2D in TexImage2D and TexSubImage2D messages
Diffstat (limited to 'components/canvas')
-rw-r--r--components/canvas/webgl_thread.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs
index af7ebe19dc1..700fdf0db72 100644
--- a/components/canvas/webgl_thread.rs
+++ b/components/canvas/webgl_thread.rs
@@ -1046,8 +1046,7 @@ impl WebGLImpl {
target,
level,
internal_format,
- width,
- height,
+ size,
format,
data_type,
unpacking_alignment,
@@ -1059,8 +1058,8 @@ impl WebGLImpl {
target,
level as i32,
internal_format as i32,
- width as i32,
- height as i32,
+ size.width as i32,
+ size.height as i32,
0,
format,
data_type,
@@ -1072,8 +1071,7 @@ impl WebGLImpl {
level,
xoffset,
yoffset,
- width,
- height,
+ size,
format,
data_type,
unpacking_alignment,
@@ -1086,8 +1084,8 @@ impl WebGLImpl {
level as i32,
xoffset,
yoffset,
- width as i32,
- height as i32,
+ size.width as i32,
+ size.height as i32,
format,
data_type,
&receiver.recv().unwrap(),