Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed problem where creating the view passed NULL as the context for …

…setting current context ... needed to actually pass the context.
  • Loading branch information
Holmes Futrell committed Aug 18, 2008
1 parent e4ebe9a commit e5d51daa981483e68541e0acd24a93abe91c92f9
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit e5d51da

Please sign in to comment.