Part of the Khronos Group

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

    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 :
    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
    Bay Area, CA, USA

    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

    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

    Re: GL_ZERO TexEnv?

    Nobody else, eh?

  5. #5

    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

    Re: GL_ZERO TexEnv?

    n00b my ass.

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


    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