From ab5ec281ecc1c6c81928ea8a4e24a3ba3f5506cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 9 Oct 2016 05:03:00 -0700 Subject: [PATCH] Fixed #595. --- 3rdparty/remotery/lib/Remotery.c | 3 ++- src/glcontext_nsgl.mm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/3rdparty/remotery/lib/Remotery.c b/3rdparty/remotery/lib/Remotery.c index 3acc72fa3..4dc2bf475 100644 --- a/3rdparty/remotery/lib/Remotery.c +++ b/3rdparty/remotery/lib/Remotery.c @@ -5682,7 +5682,8 @@ static void* rmtglGetProcAddress(OpenGL* opengl, const char* symbol) #elif defined(__APPLE__) && !defined(GLEW_APPLE_GLX) - return NSGLGetProcAddress((const GLubyte*)symbol); + extern void* nsglGetProcAddress(const GLubyte* _name); + return nsglGetProcAddress((const GLubyte*)symbol); #elif defined(RMT_PLATFORM_LINUX) diff --git a/src/glcontext_nsgl.mm b/src/glcontext_nsgl.mm index 61a392722..50f35e42c 100644 --- a/src/glcontext_nsgl.mm +++ b/src/glcontext_nsgl.mm @@ -126,7 +126,7 @@ namespace bgfx { namespace gl [glContext makeCurrentContext]; GLint interval = 0; [glContext setValues:&interval forParameter:NSOpenGLCPSwapInterval]; - + // When initializing NSOpenGLView programatically (as we are), this sometimes doesn't // get hooked up properly (especially when there are existing window elements). This ensures // we are valid. Otherwise, you'll probably get a GL_INVALID_FRAMEBUFFER_OPERATION when