From e02e34521abd1a42525ee6ea3cf0f95f46efd091 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 21 Jul 2014 02:46:53 -0300 Subject: [PATCH] The default implementation of [view layoutSubviews] actually does something in iOS 6+, so we should call [super layoutSubviews] when overriding it. --- src/video/uikit/SDL_uikitopenglview.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/uikit/SDL_uikitopenglview.m b/src/video/uikit/SDL_uikitopenglview.m index 80335e79b..48f5981e6 100644 --- a/src/video/uikit/SDL_uikitopenglview.m +++ b/src/video/uikit/SDL_uikitopenglview.m @@ -212,6 +212,8 @@ - (void)layoutSubviews { + [super layoutSubviews]; + [EAGLContext setCurrentContext:context]; [self updateFrame]; }