Results 1 to 2 of 2

Thread: problem with glBindTexture()

  1. #1
    Senior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    Melbourne, Australia
    Posts
    224

    problem with glBindTexture()

    hi!
    when i call glBindTexture() for 1st texture unit sometimes it's not bind until i (alternatively):
    - repeat the same function call glBindTexture()
    - or call glEnable(GL_TEXTURE_2D), which i don't understand at all, because it's all the time enabled

    that doesn't happen when i don't use multitexturing
    any ideas what could it be?

    thx for help

    [This message has been edited by MickeyMouse (edited 04-08-2002).]

  2. #2
    Member Newbie
    Join Date
    Apr 2002
    Location
    Split, Croatia
    Posts
    43

    Re: problem with glBindTexture()

    When you use multitexturing make sure you call glActiveTextureARB before you
    bind texture.For example, if you use two textures you would bind them like this

    glActiveTexturesARB(GL_TEXTURE0_ARB);
    glBindTexture(GL_TEXTURE_2D, first_texture);
    glActiveTextureARB(GL_TEXTURE1_ARB);
    glBindTexture(GL_TEXTURE_2D, second_texture);

    After that you can draw stuff but use glMultiTexCoord2fARB function for every
    active texture unit.
    Hope this helps.


    [This message has been edited by mproso (edited 04-08-2002).]

Similar Threads

  1. glBindTexture problem
    By wavey do in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-26-2004, 02:26 PM
  2. glBindTexture() problem...
    By Sephiroth in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 12-17-2003, 07:01 AM
  3. A Problem with glBindTexture
    By nickcartwright in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 10-06-2003, 07:55 AM
  4. Problem with glBindTexture
    By Caran Elmoth in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-20-2003, 06:35 AM
  5. glBindTexture problem
    By Xelatihy in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 11-02-2000, 08:51 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