mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add support for arm64 simulator
This commit is contained in:
@@ -236,6 +236,10 @@ static void TGDispatchOnMainThread(dispatch_block_t block) {
|
||||
|
||||
- (void)loadGL
|
||||
{
|
||||
#if TARGET_OS_SIMULATOR && defined(__aarch64__)
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (/*[[UIApplication sharedApplication] applicationState] != UIApplicationStateBackground*/true && !_isOpenGLLoaded)
|
||||
{
|
||||
context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
||||
|
||||
Reference in New Issue
Block a user