I found that I can't reproduce this bug with Xephyr -glamor_gles2 (git) but it still happens with -glamor.