opengles emulator: mac support binding context to pbuffer
On Mac it happens that when a context is bound to a pbuffer and you want to bind it to a window (NSView) instead you must release it from the pbuffer before binding the window by calling clearDrawable handle of NSOpenGLContext. This change added an override of NSOpenGLContext in order to track to which drawable type the context was previously bound and call clearDrawable when necessary. Change-Id: Iece5ab16a46aa0d107ccb773986a6b280d09d181
This commit is contained in:
committed by
Guy Zadickario
parent
f79a58ed62
commit
9dcac079ce
@@ -50,6 +50,7 @@ EGLNativeWindowType createSubWindow(FBNativeWindowType p_window,
|
||||
void destroySubWindow(EGLNativeDisplayType dis,EGLNativeWindowType win){
|
||||
if(win){
|
||||
NSView *glView = (NSView *)win;
|
||||
[glView removeFromSuperview];
|
||||
[glView release];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user