comparison src/video/uikit/SDL_uikitopengles.m @ 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 bf7028ffbf07
children
comparison
equal deleted inserted replaced
2466:5b3864b77e2a 2467:058e1f140ff3
114 [data->uiwindow addSubview: view ]; 114 [data->uiwindow addSubview: view ];
115 115
116 /* Don't worry, the window retained the view */ 116 /* Don't worry, the window retained the view */
117 [view release]; 117 [view release];
118 118
119 if ( UIKit_GL_MakeCurrent(_this, window, NULL) < 0 ) { 119 if ( UIKit_GL_MakeCurrent(_this, window, view) < 0 ) {
120 UIKit_GL_DeleteContext(_this, NULL); 120 UIKit_GL_DeleteContext(_this, view);
121 return NULL; 121 return NULL;
122 } 122 }
123 123
124 return view; 124 return view;
125 } 125 }