Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyglet.gl.lib.GLException: (0x500): Invalid enum. An unacceptable value is specified for an enumerated argument. #148

Open
rish-hyun opened this issue Jan 6, 2023 · 1 comment

Comments

@rish-hyun
Copy link

I'm getting an error

Traceback (most recent call last):
  File "c:\Users\risha\OneDrive\Documents\Python\pyglet-test\main.py", line 905, in <module>
    main()
  File "c:\Users\risha\OneDrive\Documents\Python\pyglet-test\main.py", line 900, in main
    setup()
  File "c:\Users\risha\OneDrive\Documents\Python\pyglet-test\main.py", line 893, in setup
    setup_fog()
  File "c:\Users\risha\OneDrive\Documents\Python\pyglet-test\main.py", line 864, in setup_fog
    glEnable(GL_FOG)
  File "C:\Users\risha\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyglet\gl\lib.py", line 114, in errcheck
    raise GLException('(0x%x): %s' % (error, msg))
pyglet.gl.lib.GLException: (0x500): Invalid enum. An unacceptable value is specified for an enumerated argument.
@Python-Sargent
Copy link

Something is wrong internally with the pyglet fog mechanics, this is usually caused by something passing in a variable that isn't what was expected.

Did you change any code?
You could also try turning fog off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants