kodi-game / game.libretro

Libretro compatibility layer for the Kodi Game API
GNU General Public License v2.0
37 stars 26 forks source link

Fix segfault when opening 3DEngine core #80

Closed garbear closed 2 years ago

garbear commented 2 years ago

Description

The return value of OpenStream() wasn't checked. As a result, the core 3DEngine would successfully initialize even though GL support was missing, but then segfault in the run loop.

How has this been tested?

After this change, the 3DEngine core exits with an error message instead of segfaulting.

Screenshot from 2021-10-30 23-20-12