Use an opaque surface in createRenderTarget()

This commit is contained in:
David Capello 2018-01-26 19:01:04 -03:00
parent 608c902901
commit 1b12f5ccbd

View File

@ -274,8 +274,9 @@ private:
SkSurface::MakeRenderTarget(
m_grCtx.get(),
SkBudgeted::kYes,
SkImageInfo::MakeN32Premul(MAX(1, size.w / scale),
MAX(1, size.h / scale)),
SkImageInfo::Make(MAX(1, size.w / scale),
MAX(1, size.h / scale),
kN32_SkColorType, kOpaque_SkAlphaType);
m_glCtx->getSampleCount(),
nullptr);
}