Fixed bug 5199 - Fix KMSDRM_CreateWindow() segfault when starting LÖVE2D engine.

Manuel Alfayate Corchete

This small patch fixes the KMSDRM_CreateSurfaces() call in KMSDRM_CreateWindow(), that was segfaulting deeper into SDL internals because the windata->viddata pointer wasn't set before the KMSDRM_CreateSurfaces() call.
So that's what this small patch does.

Now, LÖVE2D works perfectly well on the Raspberry Pi 3, instead of just segfaulting.
1 file changed