changeset 2467:058e1f140ff3 gsoc2008_iphone

Fixed problem where creating the view passed NULL as the context for setting current context ... needed to actually pass the context.
author Holmes Futrell <hfutrell@umail.ucsb.edu>
date Mon, 18 Aug 2008 19:39:08 +0000
parents 5b3864b77e2a
children cbcd2e990cfc
files src/video/uikit/SDL_uikitopengles.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }