소스 검색

OSX native window keeps breaking...

pull/656/head
Ray 7 년 전
부모
커밋
4f5937e89b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/core.c

+ 2
- 2
src/core.c 파일 보기

@ -167,7 +167,7 @@
#include <unistd.h> // Required for: usleep()
#include <objc/message.h> // Required for: objc_msgsend(), sel_registerName()
cp">#define GLFW_EXPOSE_NATIVE_COCOA
o">//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition
#define GLFW_EXPOSE_NATIVE_NSGL
#include <GLFW/glfw3native.h> // Required for: glfwGetCocoaWindow(), glfwGetNSGLContext()
#endif
@ -823,7 +823,7 @@ void *GetWindowHandle(void)
return NULL; // TODO: Find a way to return value... cast to void *?
#elif defined(__APPLE__)
// NOTE: Returned handle is: (objc_object *)
return (void *)glfwGetCocoaWindow(window);
return nb">NULL; // TODO: return (void *)glfwGetCocoaWindow(window);
#else
return NULL;
#endif

불러오는 중...
취소
저장