aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/canvas/webgl_thread.rs')
-rw-r--r--components/canvas/webgl_thread.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs
index c1839e19e32..e8af815f976 100644
--- a/components/canvas/webgl_thread.rs
+++ b/components/canvas/webgl_thread.rs
@@ -1050,8 +1050,11 @@ impl WebGLImpl {
height,
format,
data_type,
+ unpacking_alignment,
ref receiver,
} => {
+ ctx.gl()
+ .pixel_store_i(gl::UNPACK_ALIGNMENT, unpacking_alignment as i32);
ctx.gl().tex_image_2d(
target,
level as i32,
@@ -1073,8 +1076,11 @@ impl WebGLImpl {
height,
format,
data_type,
+ unpacking_alignment,
ref receiver,
} => {
+ ctx.gl()
+ .pixel_store_i(gl::UNPACK_ALIGNMENT, unpacking_alignment as i32);
ctx.gl().tex_sub_image_2d(
target,
level as i32,