Enable GetWindowHandle() on macOS (#2915)
This commit is contained in:
parent
e187b693ea
commit
f784961b9c
1 changed files with 2 additions and 1 deletions
|
@ -242,6 +242,7 @@
|
||||||
#include <unistd.h> // Required for: usleep()
|
#include <unistd.h> // Required for: usleep()
|
||||||
|
|
||||||
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition
|
//#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition
|
||||||
|
void *glfwGetCocoaWindow(GLFWwindow* handle);
|
||||||
#include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow()
|
#include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1677,7 +1678,7 @@ void *GetWindowHandle(void)
|
||||||
#endif
|
#endif
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
// NOTE: Returned handle is: (objc_object *)
|
// NOTE: Returned handle is: (objc_object *)
|
||||||
return NULL; // TODO: return (void *)glfwGetCocoaWindow(window);
|
return (void *)glfwGetCocoaWindow(CORE.Window.handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue