ScriptLineStudios / pygame_shaders

a library to easily integrate shaders into your new or existing pygame projects
https://pygame-shaders.readthedocs.io/en/latest/
MIT License
49 stars 4 forks source link

ValueError: Requested OpenGL version 330, got version 0 #4

Open antazoey opened 1 year ago

antazoey commented 1 year ago

Describe the bug

I tried to run the first example from the README and I get the following:

raise ValueError('Requested OpenGL version {0}, got version {1}'.format(
ValueError: Requested OpenGL version 330, got version 0

I am able to use moderngl by itself and render stuff, and I verified I have OpenGL engine 4.1 (410).

But when I comment out the check, I get version '330' is not supported, so I am inclined to believe that this lib is unable to find my OpenGL?

I am not sure! I have to admit I am a noob when it comes to OpenGL stuff.

To Reproduce

  1. Steal my mac
  2. Use it to follow README

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.