Fixed problem where creating the view passed NULL as the context for setting current context ... needed to actually pass the context. gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Mon, 18 Aug 2008 19:39:08 +0000
branchgsoc2008_iphone
changeset 2467058e1f140ff3
parent 2466 5b3864b77e2a
child 2468 cbcd2e990cfc
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
     1.1 --- a/src/video/uikit/SDL_uikitopengles.m	Mon Aug 18 19:01:05 2008 +0000
     1.2 +++ b/src/video/uikit/SDL_uikitopengles.m	Mon Aug 18 19:39:08 2008 +0000
     1.3 @@ -116,8 +116,8 @@
     1.4  	/* Don't worry, the window retained the view */
     1.5  	[view release];
     1.6  	
     1.7 -	if ( UIKit_GL_MakeCurrent(_this, window, NULL) < 0 ) {
     1.8 -        UIKit_GL_DeleteContext(_this, NULL);
     1.9 +	if ( UIKit_GL_MakeCurrent(_this, window, view) < 0 ) {
    1.10 +        UIKit_GL_DeleteContext(_this, view);
    1.11          return NULL;
    1.12      }
    1.13