JesseTG / libretro.py

A Python binding for libretro. Intended for writing test scripts for cores, but can be used for any purpose.
MIT License
8 stars 3 forks source link

`session.video.active_context` is sometimes callable, sometimes value. #19

Open JSensebe opened 1 month ago

JSensebe commented 1 month ago

The identifier session.video.active_context will sometimes return a callable type (usually <bound method ModernGlVideoDriver.active_context of <libretro.drivers.video.opengl.moderngl.ModernGlVideoDriver object...), sometimes a number (usually 0).

This is only being used in the MultiVideoDriver.reinit() method, but that has the potential to cause problems when setting a context.

JesseTG commented 1 month ago

Can you give me a scenario that'll let me reproduce this?

JSensebe commented 1 month ago

Compare vice_x64_libretro (doesn't require any content) and mupen64plus_next_libretro (will require content, but doesn't exhibit any other apparent issues to muddy the water).