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: glGenTexture and glBindTexture

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2005
    Location
    Cannes - FRANCE
    Posts
    16

    glGenTexture and glBindTexture

    Hi,
    I use OpenGL functions like glGenTexture or glBindTexture for a long time, but today something strange happends !!!

    I've got a segmentation fault on this line:
    Code :
    glGenTextures(1, &Texture);
    ...in which Texture is a GLuint, declared as follow in my .h file:
    Code :
    GLuint Texture;
    I never had a segmention fault caused by this line, and I didn't think this instruction could cause a segmentation fault...

    Where this segmentation fault can come from ???

    Thanks a lot,
    Vinc.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: glGenTexture and glBindTexture

    Looks very strange, try to run this in a debugger.

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jan 2001
    Location
    Ukraine
    Posts
    101

    Re: glGenTexture and glBindTexture

    Probably your executable and source files are out of sync, try to recompile whole project, make sure that you don't have lf/cr issue in source file, make sure that you don't have another (old) copy of dll with that copy in your PATH (if you compile code into dll)...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •