Don't crash when CGContext is nil

This commit is contained in:
Ali 2019-11-06 16:48:37 +04:00
parent df9819f285
commit 8207b76df9

View File

@ -237,7 +237,7 @@ using AS::MutexLocker;
UIImage *image = nil;
if (shouldCreateGraphicsContext && !currentContext) {
ASDisplayNodeAssert(NO, @"Failed to create a CGContext (size: %@)", NSStringFromCGSize(bounds.size));
//ASDisplayNodeAssert(NO, @"Failed to create a CGContext (size: %@)", NSStringFromCGSize(bounds.size));
return nil;
}