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,574

    Re: glGenTexture and glBindTexture

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

  3. #3
    Senior 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)...

Similar Threads

  1. glGenTexture in a Display List
    By vncvnc in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-20-2009, 12:56 PM
  2. A Question about glGenTexture and BindTexture
    By KraftDinner in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 10-08-2004, 12:49 PM
  3. GlBindTexture?
    By Bagoj in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-09-2004, 10:19 PM
  4. glGenTexture problem (or something else...)
    By acerb in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 03-28-2003, 07:25 AM
  5. glGenTexture problem (or something else...)
    By acerb in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-20-2003, 07:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean