mirror of
https://github.com/panda3d/panda3d.git
synced 2026-05-12 17:48:49 -05:00
cocoa: Remove autorelease pool in process_events()
We now have one around the entire frame, in graphicsEngine.cxx
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
#import "cocoaPandaAppDelegate.h"
|
||||
|
||||
#import <ApplicationServices/ApplicationServices.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <AppKit/NSApplication.h>
|
||||
#import <AppKit/NSCursor.h>
|
||||
#import <AppKit/NSEvent.h>
|
||||
@@ -177,7 +176,6 @@ void CocoaGraphicsWindow::
|
||||
process_events() {
|
||||
GraphicsWindow::process_events();
|
||||
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
NSEvent *event = nil;
|
||||
|
||||
while (true) {
|
||||
@@ -212,8 +210,6 @@ process_events() {
|
||||
[_window update];
|
||||
}
|
||||
|
||||
[pool release];
|
||||
|
||||
if (_context_needs_update && _gsg != nullptr) {
|
||||
update_context();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user