glClear problem

This topic contains 3 replies, has 2 voices, and was last updated by  Xmas 8 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29725

    undersun
    Member

    It seems I found a bug. glDepthMask(GL_FALSE)  – disables writing to Z-buffer and also disables clearing Z-buffer using glClear function.

    But

    From documentation:
    "glDepthMask does not affect glClear.”
    http://www.khronos.org/opengles/documentation/opengles1_0/html/glDepthMask.html

    I tell about win32 implementation from v2.3 SDK

    #32805

    Xmas
    Member

    The statement on that man page is incorrect, glDepthMask does affect glClear. In general the man pages for ES 1.1 are in a much better state than the ones for ES 1.0:

    http://www.khronos.org/opengles/sdk/1.1/docs/man/

    According to the ES 1.1 full spec:

    Quote:
    When Clear is called, the only per-fragment operations that are applied (if

    enabled) are the pixel ownership test, the scissor test, and dithering. The masking

    operations described in the last section (4.2.2) are also effective.

    Xmas2009-03-10 16:08:24

    #32806

    undersun
    Member

    Hmm!
    From 1.1 documentation
    http://www.khronos.org/opengles/sdk/1.1/docs/man/

    Alpha function, blend function, logical operation, stenciling, texture mapping, and depth-buffering are ignored by glClear.

    This is also incorrect or I misunderstands this statement?

    #32807

    Xmas
    Member

    This should probably say that the depth test is ignored. Obviously not depth buffering as a whole, otherwise there would be no way of clearing the depth buffer.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.