# HG changeset patch # User Holmes Futrell # Date 1219088348 0 # Node ID 058e1f140ff30ef40a8bb65f76240c0090322460 # Parent 5b3864b77e2a73184d874631bda59706be91ab98 Fixed problem where creating the view passed NULL as the context for setting current context ... needed to actually pass the context. diff -r 5b3864b77e2a -r 058e1f140ff3 src/video/uikit/SDL_uikitopengles.m --- a/src/video/uikit/SDL_uikitopengles.m Mon Aug 18 19:01:05 2008 +0000 +++ b/src/video/uikit/SDL_uikitopengles.m Mon Aug 18 19:39:08 2008 +0000 @@ -116,8 +116,8 @@ /* 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; }