libretro / scummvm

ScummVM main repository
https://www.scummvm.org
GNU General Public License v3.0
4 stars 6 forks source link

OpenGL context initialization error #59

Open cmitu opened 1 month ago

cmitu commented 1 month ago

Hi,

I'm using the ScummVM core on a GLES2 (only) device (Raspberry Pi 3B), after compiling the core with GLES2 support following this commit. RetroArch (1.9.1) starts the GLES2 context alright, but the core fails to detect it (?) and stops with:

...
[INFO] [EGL]: Current context: 0x1.
[INFO] [GL]: Found GL context: "egl_videocore".
[INFO] [GL]: Detecting screen resolution: 1920x1080.
[INFO] [GL]: Vendor: Broadcom, Renderer: VideoCore IV HW.
[INFO] [GL]: Version: OpenGL ES 2.0.
[INFO] [GL]: Using resolution 1920x1080.
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[WARN] [GL]: Stock GLSL shaders will be used.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] Shader log: Compiled
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] Shader log: Compiled
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] Shader log: Compiled
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] Shader log: Compiled
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] Shader log: Compiled
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] Shader log: Compiled
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 1 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Initializing HW render (1024x1024).
[INFO] [GL]: Max texture size: 2048 px, renderbuffer size: 2048 px.
[INFO] [GL]: Supports FBO (render-to-texture).
...
[WARN] [udev]: Mouse grab/ungrab feature unavailable.
[INFO] [Input]: Game Focus => OFF
[libretro DEBUG] Default browser last path set to: /home/pi
[libretro DEBUG] Default save path set to: /home/pi/roms/scummvm/bass/
[libretro DEBUG] Mixer set up at 48000Hz
[libretro ERROR] Couldn't initialize OpenGL!

Is this a supported configuration ? Is there any additional configuration to be added to core options/RetroArch's config to make it work ? Let me know if any additional info is needed.

gouchi commented 2 weeks ago

Hi,

Which options did you use for compiling it ?

Thank you.

cmitu commented 1 week ago

@gouchi it was built with the FORCE_OPENGLES2=1 make parameter - see https://github.com/libretro/scummvm/issues/57.