From 5d097bbc8d9ea5b9b972510831a253c99da5731e Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Thu, 1 Nov 2018 11:18:14 +0800 Subject: [PATCH] Fix the `SDGraphicsBeginImageContext` method recursive call issue --- SDWebImage/SDImageGraphics.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDImageGraphics.m b/SDWebImage/SDImageGraphics.m index 683780ee..e7c4ed45 100644 --- a/SDWebImage/SDImageGraphics.m +++ b/SDWebImage/SDImageGraphics.m @@ -46,7 +46,7 @@ CGContextRef SDGraphicsGetCurrentContext(void) { void SDGraphicsBeginImageContext(CGSize size) { #if SD_UIKIT || SD_WATCH - SDGraphicsBeginImageContext(size); + UIGraphicsBeginImageContext(size); #else SDGraphicsBeginImageContextWithOptions(size, NO, 1.0); #endif