summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-17 10:19:52 +0200
committerRay <[email protected]>2022-08-17 10:19:52 +0200
commit2ad7967db80644a25ca123536cf2f6efcb869684 (patch)
treef59c4ddb2cac1da7cd70a577a92dfa1f514626fc
parent95d3a6ac529de2da68bb4b68ea69ec12208c6aef (diff)
downloadraylib-2ad7967db80644a25ca123536cf2f6efcb869684.tar.gz
raylib-2ad7967db80644a25ca123536cf2f6efcb869684.zip
REVIEW: Fix issue with external GLFW missing define #2638
-rw-r--r--src/rcore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 7acedf6c..d90acf6c 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)