mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Send alignment info directly in TexImage2D and TexSubImage2d messages
This commit is contained in:
parent
1675991b12
commit
1c89ac90b9
3 changed files with 10 additions and 20 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue