Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 4944820640b4e579a0bfa36735bc984dc0ca6160..29add839bd636db2032bc9bb7e439e29c991606d 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -1485,9 +1485,9 @@ |
idDesc->fRTFBOID = 0; |
idDesc->fRTFBOOwnership = GrBackendObjectOwnership::kOwned; |
idDesc->fTexFBOID = 0; |
- SkASSERT((GrGLCaps::kMixedSamples_MSFBOType == this->glCaps().msFBOType()) == |
- this->caps()->usesMixedSamples()); |
- idDesc->fSampleConfig = GrRenderTarget::ComputeSampleConfig(*this->caps(), desc.fSampleCnt); |
+ idDesc->fSampleConfig = (GrGLCaps::kMixedSamples_MSFBOType == this->glCaps().msFBOType() && |
+ desc.fSampleCnt > 0) ? GrRenderTarget::kStencil_SampleConfig : |
+ GrRenderTarget::kUnified_SampleConfig; |
GrGLenum status; |