Results 1 to 3 of 3

Thread: EAccesViolation at loading texture

  1. #1
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    EAccesViolation at loading texture

    Does somebody have any idea why i got error EAccesviolation always when i want to load texture :


    AUX_RGBImageRec *Obr1 = auxDIBImageLoad("Data\\Zed.bmp");
    glGenTextures(GL_TEXTURE_2D,&Textures[0]);
    glBindTexture(GL_TEXTURE_2D,Textures[0]);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR);
    glTexImage2D(GL_TEXTURE_2D,0,3,Obr1->sizeX,Obr1->sizeY,0,GL_RGB,GL_UNSIGNED_BYTE,Obr1->data);
    free(Obr1->data);
    free(Obr1);

    when i dont load the texture it is ok.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: EAccesViolation at loading texture

    On what line does is fail? When loading the bitmap, when uploading it, or when freeing the memory, or another place?

  3. #3
    Senior Member Regular Contributor
    Join Date
    Apr 2001
    Location
    Fort Collins, Colorado
    Posts
    446

    Re: EAccesViolation at loading texture

    Is "Data\\Zed.bmp" a valid path?

Similar Threads

  1. Loading texture using SDL
    By bahtiud in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-04-2013, 03:01 AM
  2. Texture loading and PBO
    By prunkdump in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-14-2012, 06:24 AM
  3. Texture loading
    By DerTherion in forum OpenGL ES
    Replies: 0
    Last Post: 08-06-2011, 05:24 PM
  4. texture loading
    By JanHH in forum OpenGL: Windows
    Replies: 2
    Last Post: 08-02-2007, 09:16 AM
  5. texture loading
    By nergal in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-20-2002, 09:27 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