bluecadet / Cinder-BluecadetViews

Scene graph Cinder block with touch management and various tools for UI dev
MIT License
11 stars 3 forks source link

MaskView: Masks with multiple draw calls break nested masks #127

Open benjaminbojko opened 6 years ago

benjaminbojko commented 6 years ago

If a view that produces multiple gl draw calls is used as a MaskView mask, it will increment the stencil buffer multiple times and the stencil test will break.

This can be triggered by a nested mask, where the child MaskView has an ImageView (because it calls both BaseView::draw() and gl::draw(mTexture, ...)) or a BaseView with multiple children as a mask.