Please sign in to comment.
Use glClear to clear the stencil buffer.
Use glClear instead of drawing a rectange so that current layer's mask for the entire stencil buffer is cleared. This fixes clipping when drawn to a texture larger than the screen size or when the stencil or clipping node's children contain vertices with negative coordinates.
- Loading branch information...