8000 Fix get_current_unpack_state · servo/servo@47c1133 · GitHub
[go: up one dir, main page]

Skip to content

Commit 47c1133

Browse files
committed
Fix get_current_unpack_state
Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
1 parent 2a3832d commit 47c1133

File tree

2 files changed

+144
-143
lines changed

2 files changed

+144
-143
lines changed

components/script/dom/webgl2renderingcontext.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3145,7 +3145,8 @@ impl WebGL2RenderingContextMethods<crate::DomTypeHolder> for WebGL2RenderingCont
31453145
IpcSharedMemory::from_bytes(&vec![0u8; expected_byte_len as usize])
31463146
},
31473147
};
3148-
let (alpha_treatment, y_axis_treatment) = self.base.get_current_unpack_state(false);
3148+
let (alpha_treatment, y_axis_treatment) =
3149+
self.base.get_current_unpack_state(Alpha::NotPremultiplied);
31493150
// If UNPACK_FLIP_Y_WEBGL or UNPACK_PREMULTIPLY_ALPHA_WEBGL is set to true, texImage3D and texSubImage3D
31503151
// generate an INVALID_OPERATION error if they upload data from a PIXEL_UNPACK_BUFFER or a non-null client
31513152
// side ArrayBufferView.

0 commit comments

Comments
 (0)
0