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:
pierre lamot 2015-02-24 15:50:58 +01:00 committed by Cedric BAIL
parent fec6d1207a
commit c380812496
1 changed files with 6 additions and 3 deletions

View File

@ -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];
}