Closed NaNraptor closed 2 years ago
Apparently it is because you need glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, None)
instead of glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0)
. solved and explained here: https://github.com/FlorianRhiem/pyGLFW/issues/62
Specs: intel i9-12900k (with igpu) running mesa igpu drivers Nvidia RTX 3080-ti with Nvidia 510 proprietary drivers Linux 21.10 with the 16.14 kernel Using GLFW for python for a window and context provider
Observed behaviour: While running my code with the intel igpu I get a red screen in the window and nothing else While running my code with the nvidia gpu I get a black screen in the window that has red lines and dots briefly flickering before getting aborted (core dumped)
Expected behaviour: A window that does not crash and has red background and a rectangle drawn in the middle of the screen
Note: to run the program using my nvidia gpu I use the following command:
_NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia py main.py
Any idea what might be going wrong?
Here is code, minified as much as possible: