File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,11 @@ sk_sp<GrTextureProxy> GrDynamicAtlas::MakeLazyAtlasProxy(
5050 InternalMultisample internalMultisample, const GrCaps& caps,
5151 GrSurfaceProxy::UseAllocator useAllocator) {
5252 GrBackendFormat format = caps.getDefaultBackendFormat (colorType, GrRenderable::kYes );
53- int sampleCount = (InternalMultisample::kYes == internalMultisample) ?
54- caps.internalMultisampleCount (format) : 1 ;
53+
54+ int sampleCount = 1 ;
55+ if (!caps.mixedSamplesSupport () && InternalMultisample::kYes == internalMultisample) {
56+ sampleCount = caps.internalMultisampleCount (format);
57+ }
5558
5659 auto instantiate = [cb = std::move (callback), format, sampleCount](GrResourceProvider* rp) {
5760 return cb (rp, format, sampleCount);
You can’t perform that action at this time.
0 commit comments