Results 1 to 2 of 2

Thread: glClear() with glxMask( GL_FALSE )?

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2003
    Posts
    7

    glClear() with glxMask( GL_FALSE )?

    What is considered the proper behaivor for an opengl library when a glClear is issued when the mask for that particular buffer is set to GL_FALSE? Various documentation says glStencilMask() (for example) controls the writing of individual bits to the stencil buffer, but documentation is lacking on if glClear( GL_STENCIL_BUFFER_BIT ) will then clear the stencil buffer.

    It seems that attempting a glClear() with the mask set to false will not cause a clear to occur. Is that considered correct behaivor?

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

    Re: glClear() with glxMask( GL_FALSE )?

    Check the API specification for things like this.
    From 4.2.3
    The masking operations described in the last section (4.2.2) are also effective.

Similar Threads

  1. Replies: 3
    Last Post: 01-22-2013, 08:29 AM
  2. Rendermonkey + OpenGL-ES 2.0 = GL_FALSE
    By SimonS in forum OpenGL ES
    Replies: 1
    Last Post: 03-25-2012, 06:00 PM
  3. gluUnProject returning GL_FALSE
    By Scribe in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 12-01-2007, 09:48 AM
  4. glDepthMask(GL_FALSE), HELP !
    By zhucde in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-16-2007, 05:36 PM
  5. glDepthMask(GL_FALSE) on Geforce2 GTS
    By merak in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-21-2001, 02:25 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