libretro / dolphin

Dolphin is a GameCube / Wii emulator, allowing you to play games for these two platforms on PC with improvements.
https://dolphin-emu.org/
GNU General Public License v2.0
86 stars 68 forks source link

Segfault on OpenGL ES > 3.0 #306

Closed rtomasa closed 1 year ago

rtomasa commented 1 year ago

Hi,

I'm creating a new libretro front-end and noticed that when the core is requesting info from RETRO_ENVIRONMENT_GET_PREFERRED_HW_RENDER, it is missing one OpenGL ES libretro enum so that the core will fail to get the context in some scenarios where OpenGL ES 3.1+ is availalbe.

Basically if you search for all occurrences of RETRO_HW_CONTEXT_OPENGLES3 in video.cpp, simpli adding another additional case for RETRO_HW_CONTEXT_OPENGLES_VERSION should be enough to support OpenGL ES 3.1+ devices like Pi4

Best Regards