-
Segfault in GL lib
Howdy,
I moved some OpenGL calls from my rendering code to my initialization code (so I can preload stuff to the card). However, the app now seg faults in libGL even with basic glVertex calls. I think I'm initializing the rendering context and the window correctly. Is there anything else that might be responsible for the seg fault?
Thanks!
-
Advanced Member
Frequent Contributor
Re: Segfault in GL lib
You have to make sure that you initialized both the OpenGL context and glew/glee or whatever extension wrangler you're using.
-
Re: Segfault in GL lib
I think I figured it out. I called glEnableVertexAttribArray, but I removed the call to glVertexAttribPointer. Apparently that does very bad things in the driver without returning an error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules