renpy / pygame_sdl2

Reimplementation of portions of the pygame API using SDL2.
GNU Lesser General Public License v2.1
326 stars 64 forks source link

Use PYGAME_AVOID_GL environment variable if needed #64

Closed SpikyCaterpillar closed 7 years ago

SpikyCaterpillar commented 7 years ago

First stab at a patch to allow players and games to disable GL. The environment variable is checked in set_mode(), so games can disable GL automatically at runtime if appropriate.

It's not well tested at the moment; it'll be going into my production betas in the future, though, which should get wider coverage.