Don't assert trying to make an MSAA surface with Metal, just fail

Change-Id: I66b18d753f0e78cc1d647328322d12c037fa9ed5
Reviewed-on: https://skia-review.googlesource.com/149484
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
Brian Osman 2018-08-27 12:27:43 -04:00 committed by Skia Commit-Bot
parent 36f7e3298e
commit a3adbf28ee

View File

@ -39,7 +39,6 @@ GrMtlTextureRenderTarget::Make(GrMtlGpu* gpu,
bool isWrapped) {
SkASSERT(nil != renderTexture);
if (desc.fSampleCnt > 1) {
SkASSERT(false); // Currently don't support MSAA
return nullptr;
}
SkASSERT((MTLTextureUsageShaderRead | MTLTextureUsageRenderTarget) & renderTexture.usage);