cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.02k stars 7.05k forks source link

Reset stencil mask prior to clear for LM-V600 GL Driver. #20700

Open sbehnke opened 2 years ago

sbehnke commented 2 years ago

This fixes a crash on LG ThinQ V60 (LM-V600). From libEGL.so eglSwapBuffers() the libGLESv2_adreno.so causes a segmentation violation (invalid memory reference) without first performing the recommended step of setting the stencil mask back to 0xff.