mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
egl: fix dri2_from_names() call
The offset argument is `int *offsets`. !31406 pointed this out and I checked for other instances of the same bug. Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31484>
This commit is contained in:
parent
fd0ff1502a
commit
842a7b2821
1 changed files with 2 additions and 1 deletions
|
|
@ -2184,9 +2184,10 @@ dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
int offset = 0;
|
||||
dri_image = dri2_from_names(
|
||||
dri2_dpy->dri_screen_render_gpu, attrs.Width, attrs.Height, fourcc,
|
||||
(int *) &name, 1, (int *) &pitch, 0, NULL);
|
||||
(int *) &name, 1, (int *) &pitch, &offset, NULL);
|
||||
|
||||
return dri2_create_image_from_dri(disp, dri_image);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue