evas: bypass lockfocus in NSView on OSX
this patch bypass calls to (un)lockFocus, avoid segv when closing windows This is certainly not the cleanest way to do it but it seems to be working correctly at the moment. this may leads to unexepected behavior which haven't been identified now @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
fec6d1207a
commit
c380812496
|
@ -1,4 +1,3 @@
|
|||
|
||||
#include <Cocoa/Cocoa.h>
|
||||
|
||||
#include "evas_engine.h"
|
||||
|
@ -59,12 +58,16 @@ static NSOpenGLContext *_evas_gl_cocoa_shared_context = NULL;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void)unlockFocus
|
||||
{
|
||||
//[super unlockFocus];
|
||||
}
|
||||
|
||||
- (void)lockFocus
|
||||
{
|
||||
NSOpenGLContext* context = [self openGLContext];
|
||||
|
||||
[super lockFocus];
|
||||
|
||||
//[super lockFocus];
|
||||
if ([context view] != self) {
|
||||
[context setView:self];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue