Minecraft icon indicating copy to clipboard operation
Minecraft copied to clipboard

NameError: name 'GL_FOG' is not defined

Open 4nkanpaa opened this issue 1 year ago • 4 comments

4nkanpaa avatar Nov 30 '23 14:11 4nkanpaa

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.

uuk0 avatar Aug 01 '24 13:08 uuk0

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?

sherrygamerz avatar Aug 11 '24 11:08 sherrygamerz

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"

uuk0 avatar Aug 11 '24 16:08 uuk0