Minecraft
Minecraft copied to clipboard
NameError: name 'GL_FOG' is not defined
This is caused by the wrong pyglet version; you need pyglet < 2.0, at the moment the latst version < 2.0 is 1.5.29
Pyglet 2.0 was a breaking change, changing to a more modern OpenGL version, which was also breaking, so the whole rendering stuff is not working with pyglet 2.0, including the fog.
This is caused by the wrong pyglet version; you need pyglet < 2.0, at the moment the latst version < 2.0 is 1.5.29
Pyglet 2.0 was a breaking change, changing to a more modern OpenGL version, which was also breaking, so the whole rendering stuff is not working with pyglet 2.0, including the fog.
how to install then?
If you used pip, first uninstall: "<python command> -m pip uninstall pyglet", and than reinstall the version you want by "<python command> -m pip install pyglet==1.5.29"