From 2ad7967db80644a25ca123536cf2f6efcb869684 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 17 Aug 2022 10:19:52 +0200 Subject: [PATCH] REVIEW: Fix issue with external GLFW missing define #2638 --- src/rcore.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rcore.c b/src/rcore.c index 7acedf6c2..d90acf6ce 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -237,6 +237,12 @@ //#define GLFW_EXPOSE_NATIVE_COCOA // WARNING: Fails due to type redefinition #include "GLFW/glfw3native.h" // Required for: glfwGetCocoaWindow() #endif + + // TODO: HACK: Added flag if not provided by GLFW when using external library + // Latest GLFW release (GLFW 3.3.8) does not implement this flag, it was added for 3.4.0-dev + #if !defined(GLFW_MOUSE_PASSTHROUGH) + #define GLFW_MOUSE_PASSTHROUGH 0x0002000D + #endif #endif #if defined(PLATFORM_ANDROID)