Browse Source
Fix segmentation fault error when using Linux Framebuffer DRM mode with AOT compilation (#14266)
Co-authored-by: Benjamin Simonsson <benjamin.simonsson@plejd.com>
pull/14276/head
BenniSim
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Linux/Avalonia.LinuxFramebuffer/Output/DrmOutput.cs
|
|
|
@ -121,7 +121,7 @@ namespace Avalonia.LinuxFramebuffer.Output |
|
|
|
// prepare for the new ioctl call
|
|
|
|
var handles = new uint[] {handle, 0, 0, 0}; |
|
|
|
var pitches = new uint[] {stride, 0, 0, 0}; |
|
|
|
var offsets = Array.Empty<uint>(); |
|
|
|
var offsets = new uint[4]; |
|
|
|
|
|
|
|
var ret = drmModeAddFB2(_card.Fd, w, h, format, handles, pitches, |
|
|
|
offsets, out var fbHandle, 0); |
|
|
|
|