Send alignment info directly in TexImage2D and TexSubImage2d messages

This commit is contained in:
Anthony Ramine 2018-11-15 10:39:01 +01:00
parent 1675991b12
commit 1c89ac90b9
3 changed files with 10 additions and 20 deletions

View file

@ -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,