mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
egl_dri2: Zero out driver struct
Otherwise testing ->Probe for non-NULL and calling it goes boom.
This commit is contained in:
parent
5f161261c7
commit
880acbe177
1 changed files with 1 additions and 0 deletions
|
|
@ -1396,6 +1396,7 @@ _eglMain(const char *args)
|
|||
if (!dri2_drv)
|
||||
return NULL;
|
||||
|
||||
memset(dri2_drv, 0, sizeof *dri2_drv);
|
||||
_eglInitDriverFallbacks(&dri2_drv->base);
|
||||
dri2_drv->base.API.Initialize = dri2_initialize;
|
||||
dri2_drv->base.API.Terminate = dri2_terminate;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue