Fix OSX warnings + Examples/Apple+GL2 calls super reshape. (#4759, #1873)

This commit is contained in:
ocornut
2021-12-13 12:02:12 +01:00
parent 1b6b8602c1
commit d7350668d1
3 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@
animationTimer = [NSTimer scheduledTimerWithTimeInterval:0.017 target:self selector:@selector(animationTimerFired:) userInfo:nil repeats:YES];
}
-(void)reshape { [[self openGLContext] update]; [self updateAndDrawDemoView]; }
-(void)reshape { [super reshape]; [[self openGLContext] update]; [self updateAndDrawDemoView]; }
-(void)drawRect:(NSRect)bounds { [self updateAndDrawDemoView]; }
-(void)animationTimerFired:(NSTimer*)timer { [self setNeedsDisplay:YES]; }
-(void)dealloc { animationTimer = nil; }