fallahn / crogine

SDL2 Based Game Framework
82 stars 12 forks source link

ERROR: Failed loading OpenGL #116

Open urstruktur opened 2 months ago

urstruktur commented 2 months ago

Thank you for this amazing game! I could already play it running Linux Mint after building it on my system.

I would like to play it via network and tried to put it on another computer also running Linux Mint, yet I can't get it to start there. The error log tells me:

WARN: /home/abcd/.local/share/Trederia/common/audio_device.cfg file invalid or not found. INFO: Using SDL 2.0.20 ERROR: Failed loading OpenGL

My system (Lenovo E130, GPU: HD Graphics 4000) returns following after executing glxinfo | grep "OpenGL version": OpenGL version string: 4.2 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2

So OpenGL should be available. I am not sure what to try next.

fallahn commented 2 months ago

Hi. This might be a GPU issue - I've never managed to get the game running well if at all on Intel graphics.

Also make sure to add GL41 to your list of defines when building the crogine part (set USE_GL_41 to true if you're configuring the build with cmake) which will force the game to use OpenGL 4.1 instead of 4.6.

It's also worth updating SDL to 2.28 or better if you can because it includes some bug fixes related to controller input 😁