diff --git a/piet-gpu/shader/coarse.comp b/piet-gpu/shader/coarse.comp index 3a73417..1f73318 100644 --- a/piet-gpu/shader/coarse.comp +++ b/piet-gpu/shader/coarse.comp @@ -133,6 +133,8 @@ void main() { for (uint i = 0; i < N_SLICE; i++) { sh_bitmaps[i][th_ix] = 0; sh_backdrop[i][th_ix] = 0; + } + if (th_ix < N_SLICE) { sh_is_segment[th_ix] = 0; } diff --git a/piet-gpu/shader/coarse.spv b/piet-gpu/shader/coarse.spv index 56337ef..d951b24 100644 Binary files a/piet-gpu/shader/coarse.spv and b/piet-gpu/shader/coarse.spv differ