From e5d51daa981483e68541e0acd24a93abe91c92f9 Mon Sep 17 00:00:00 2001 From: Holmes Futrell Date: Mon, 18 Aug 2008 19:39:08 +0000 Subject: [PATCH] Fixed problem where creating the view passed NULL as the context for setting current context ... needed to actually pass the context. --- src/video/uikit/SDL_uikitopengles.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/uikit/SDL_uikitopengles.m b/src/video/uikit/SDL_uikitopengles.m index 175e06654..a4ca6aa76 100644 --- a/src/video/uikit/SDL_uikitopengles.m +++ b/src/video/uikit/SDL_uikitopengles.m @@ -116,8 +116,8 @@ SDL_GLContext UIKit_GL_CreateContext(_THIS, SDL_Window * window) /* Don't worry, the window retained the view */ [view release]; - if ( UIKit_GL_MakeCurrent(_this, window, NULL) < 0 ) { - UIKit_GL_DeleteContext(_this, NULL); + if ( UIKit_GL_MakeCurrent(_this, window, view) < 0 ) { + UIKit_GL_DeleteContext(_this, view); return NULL; }