mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-11 15:21:01 +03:00
fix, mac hwcodec decoding align use dst_align (#8215)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -1617,7 +1617,7 @@ fn read_custom_client_advanced_settings(
|
||||
|
||||
#[inline]
|
||||
#[cfg(target_os = "macos")]
|
||||
pub fn get_dst_stride_rgba() -> usize {
|
||||
pub fn get_dst_align_rgba() -> usize {
|
||||
// https://developer.apple.com/forums/thread/712709
|
||||
// Memory alignment should be multiple of 64.
|
||||
if crate::ui_interface::use_texture_render() {
|
||||
@@ -1629,7 +1629,7 @@ pub fn get_dst_stride_rgba() -> usize {
|
||||
|
||||
#[inline]
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
pub fn get_dst_stride_rgba() -> usize {
|
||||
pub fn get_dst_align_rgba() -> usize {
|
||||
1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user