python-opengl-tutorial icon indicating copy to clipboard operation
python-opengl-tutorial copied to clipboard

Unable to run the glfw examples on mac os 13.6.3 (m1 chip)

Open tiperiu opened this issue 2 years ago • 0 comments

Describe the bug

On my macbook pro running mac os 13.6.3 (m1 chip) I ran the first tutorial file tu_00....py

I had an error related to glfw that I fixed by adding these two limnes that apparently are common for mac os:

glfw.window_hint(glfw.OPENGL_PROFILE,glfw.OPENGL_CORE_PROFILE) glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, GL_TRUE);

After these lines teh code ran, but no window was open and at the same time the window generated by glfw seem correct (I did not catch any error in glfw calls)

To Reproduce Steps to reproduce the behavior:

  1. Add these lines to the tu_00...py glfw.window_hint(glfw.OPENGL_PROFILE,glfw.OPENGL_CORE_PROFILE) glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, GL_TRUE);
  2. run on a mac running 13.6.3 (m1 chip)

Expected behavior

The glfw window is not created, but no error is reported

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

Desktop (please complete the following information):

  • OS: macbook pro Mac OS 13.6.3 (m1 chip)

thank you Tiberiu

tiperiu avatar Dec 16 '23 21:12 tiperiu