OSX native window keeps breaking...
This commit is contained in:
parent
717cf77129
commit
4f5937e89b
1 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@
|
||||||
#include <unistd.h> // Required for: usleep()
|
#include <unistd.h> // Required for: usleep()
|
||||||
#include <objc/message.h> // Required for: objc_msgsend(), sel_registerName()
|
#include <objc/message.h> // Required for: objc_msgsend(), sel_registerName()
|
||||||
|
|
||||||
#define GLFW_EXPOSE_NATIVE_COCOA
|
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition
|
||||||
#define GLFW_EXPOSE_NATIVE_NSGL
|
#define GLFW_EXPOSE_NATIVE_NSGL
|
||||||
#include <GLFW/glfw3native.h> // Required for: glfwGetCocoaWindow(), glfwGetNSGLContext()
|
#include <GLFW/glfw3native.h> // Required for: glfwGetCocoaWindow(), glfwGetNSGLContext()
|
||||||
#endif
|
#endif
|
||||||
|
@ -823,7 +823,7 @@ void *GetWindowHandle(void)
|
||||||
return NULL; // TODO: Find a way to return value... cast to void *?
|
return NULL; // TODO: Find a way to return value... cast to void *?
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
// NOTE: Returned handle is: (objc_object *)
|
// NOTE: Returned handle is: (objc_object *)
|
||||||
return (void *)glfwGetCocoaWindow(window);
|
return NULL; // TODO: return (void *)glfwGetCocoaWindow(window);
|
||||||
#else
|
#else
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue