mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 923133 - Remove unneeded main thread GL context management in -[ChildView lockFocus]. r=mattwoodrow
--HG-- extra : rebase_source : 5098476ad30f13f2ea99e91ed0120b535ae53e78
This commit is contained in:
parent
6719e38b4f
commit
f8d71858b1
@ -323,7 +323,6 @@ typedef NSInteger NSEventGestureAxis;
|
||||
type:(mozilla::WidgetMouseEvent::exitType)aType;
|
||||
|
||||
- (void)update;
|
||||
- (void)lockFocus;
|
||||
- (void) _surfaceNeedsUpdate:(NSNotification*)notification;
|
||||
|
||||
- (BOOL)isPluginView;
|
||||
|
@ -3229,23 +3229,6 @@ NSEvent* gLastDragMouseDownEvent = nil;
|
||||
return [[self window] isMovableByWindowBackground];
|
||||
}
|
||||
|
||||
- (void)lockFocus
|
||||
{
|
||||
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
|
||||
|
||||
[super lockFocus];
|
||||
|
||||
if (mGLContext) {
|
||||
if ([mGLContext view] != self) {
|
||||
[mGLContext setView:self];
|
||||
}
|
||||
|
||||
[mGLContext makeCurrentContext];
|
||||
}
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
}
|
||||
|
||||
-(void)update
|
||||
{
|
||||
if (mGLContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user