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

Min opengl version? #13

Open
arjunmenon opened this issue Jun 8, 2024 · 2 comments
Open

Min opengl version? #13

arjunmenon opened this issue Jun 8, 2024 · 2 comments

Comments

@arjunmenon
Copy link

Hey i have 4.1, it seems leif required 4.5. Not sure we can update to 4.5 if underlying driver itself does not support that, atleast based on this - https://askubuntu.com/questions/795647/how-to-install-opengl-4-0-or-4-5-for-developing

How to go about this then? I tried building it with 4.1 itself, it installed but while running the example, i get segmentation fault.

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea737640 (LWP 1785)]

Thread 1 "basic" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

I think coming from here, lf_init_glfw(800, 600, window);

#0  0x0000000000000000 in ?? ()
#1  0x000055555556ea39 in renderer_init ()
#2  0x00005555555afa1a in lf_init_glfw ()
#3  0x0000555555558e74 in main () at basic.c:10

Basic glfw examples run fine in my system.

@marcybelardo
Copy link
Contributor

I had this issue in the past as well. There's a GLFW function call in renderer_init that only exists from 4.5 onwards. At this point, Leif would have to either rewrite the function with the old API or declare a minimum OpenGL version (as it does currently in install.sh).

@arjunmenon
Copy link
Author

Leif would have to either rewrite the function with the old API

Got it, thanks. Let me try that out.

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