servo / surfman

Accelerated offscreen graphics for WebGL
Apache License 2.0
172 stars 84 forks source link

Ensure bytes per row value meets alignment requirements for macOS surfaces #307

Closed jdm closed 1 month ago

jdm commented 1 month ago

Fixes the crash observed in https://github.com/servo/servo/issues/29809. The new FFI declaration belongs in https://github.com/servo/core-foundation-rs/blob/main/io-surface/src/lib.rs#L162, but I'm putting this up now in case anybody else hit this.

mrobinson commented 1 month ago

Nice!