Use clamp sampling mode in external texture. (flutter/engine#50063)
This is a more reasonable default sampling mode.
This commit is contained in:
@@ -70,8 +70,8 @@ void SurfaceTextureExternalTexture::Paint(PaintContext& context,
|
||||
}
|
||||
|
||||
if (!transform_.isIdentity()) {
|
||||
DlImageColorSource source(dl_image_, DlTileMode::kRepeat,
|
||||
DlTileMode::kRepeat, sampling, &transform_);
|
||||
DlImageColorSource source(dl_image_, DlTileMode::kClamp,
|
||||
DlTileMode::kClamp, sampling, &transform_);
|
||||
|
||||
DlPaint paintWithShader;
|
||||
if (context.paint) {
|
||||
|
||||
Reference in New Issue
Block a user