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.21k stars 7.06k forks source link

label without outline&shadow is blending with scene or previous activity not the background of cocos ui panel #17142

Open waqas19921 opened 7 years ago

waqas19921 commented 7 years ago

Steps to Reproduce: i am using ui::EditBox in editing mode everything works fine but when editing ends it shows the color of background view that is behind Cocos2dxglsurfaceview at its edges if I make background view's color red: than it will show red around edges. One more observation, even if I just render label to CCRenderTexture with fully transparent background, I still can see artifacts around letters.

sketch

waqas19921 commented 7 years ago

15313

waqas19921 commented 7 years ago

@zilongshanren you could simply reproduce it by adding an activity other than cocos2dx like splash and over it a transparent cocos2dx activity you can see the splash activity color around text label.

minggo commented 7 years ago

@waqas19921 it is better to provide the test case. You can do it based on cpp-empty-test and share your branch. If you don't use git, you can provides the codes without engine.

Thanks.