Thanks to visit codestin.com
Credit goes to github.com

Skip to content

clear() doesn't properly clear stencil buffer #2148

@JOSEALM3IDA

Description

@JOSEALM3IDA

Hey, very rough paragraph since I'm a bit short on time, but: during some development I came across the issue that clear() (any of them, passing the stencil param as 0) doesn't properly clear the stencil buffer. The reason for this seems to be that glStencilMask(0xFF) is not called before trying to clear the buffer, so if your previous frame happens to end with a draw call that does something other than glStencilMask(0xFF) (like 0x00), clear() wont clear the buffer properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions