Branimir Karadžić 9 yıl önce
ebeveyn
işleme
ab5ec281ec
2 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 2 1
      3rdparty/remotery/lib/Remotery.c
  2. 1 1
      src/glcontext_nsgl.mm

+ 2 - 1
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)
 

+ 1 - 1
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