Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Segfault in GL lib

  1. #1
    Intern Contributor
    Join Date
    May 2008
    Posts
    87

    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!

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2004
    Posts
    999

    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.

  3. #3
    Intern Contributor
    Join Date
    May 2008
    Posts
    87

    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
  •