mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 10:48:51 -05:00
Fix update being called on nil context
This commit is contained in:
parent
9c315412e1
commit
d3e5a3024c
|
@ -160,6 +160,7 @@ static int translateKey(unsigned int key)
|
|||
|
||||
- (void)windowDidResize:(NSNotification *)notification
|
||||
{
|
||||
if (window->context.api != GLFW_NO_API)
|
||||
[window->nsgl.context update];
|
||||
|
||||
if (_glfw.cursorWindow == window &&
|
||||
|
@ -177,6 +178,7 @@ static int translateKey(unsigned int key)
|
|||
|
||||
- (void)windowDidMove:(NSNotification *)notification
|
||||
{
|
||||
if (window->context.api != GLFW_NO_API)
|
||||
[window->nsgl.context update];
|
||||
|
||||
if (_glfw.cursorWindow == window &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user