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 6 of 6

Thread: GL_ZERO TexEnv?

  1. #1
    Guest

    GL_ZERO TexEnv?

    I can't find it documented anywhere but it seems to have the intended effect of "skipping" a texture stage if I call:

    Code :
    glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_ZERO);
    Is this kosher? It works here, but Lord knows what will happen down the road a few months...

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,969

    Re: GL_ZERO TexEnv?

    No, this is illegal, it probably doesn't skip a stage it will still be enabled, the stage may be producing white but depending on the previous texenv that may have an undesired effect.

    Do a glGetError and you'll see you've messed up.

    Use glActiveTextureARB and glDisable to turn off a texture stage.

  3. #3
    Guest

    Re: GL_ZERO TexEnv?

    I do not get anything from glGetError by passing GL_ZERO. I check every frame for glGetError and nothing occurs when this is called.

    Something else illegal, like GL_ONE, for instance, kills the program like JFK.

  4. #4
    Guest

    Re: GL_ZERO TexEnv?

    Nobody else, eh?

  5. #5
    Guest

    Re: GL_ZERO TexEnv?

    man, you noobs are a trip. not only are you ungreatful for help, from a moderator no less, but you then decline to listen to his advice!
    read the freakin spec if you dont believe him. once you are over the neck-ache from hanging your head in shame, return and say "thanks for the help!"

    ... maybe we need a "babe in the woods" forum.

  6. #6
    Guest

    Re: GL_ZERO TexEnv?

    n00b my ass.

    And if you'd read my reply, as I said, if I call

    glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_ZERO);

    glGetError() Does NOT report anything. Whether this is a "normal" thing or just on my drivers, I don't know, but you trolls who don't want to read everything are a trip.

Posting Permissions

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