]> OCCT Git - occt.git/commitdiff
Configuration - regression in wasm build #342
authoroan <oan@opencascade.com>
Tue, 4 Feb 2025 16:30:14 +0000 (16:30 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Tue, 4 Feb 2025 16:30:14 +0000 (16:30 +0000)
Quick fix absent definitions

src/OpenGl/OpenGl_GraphicDriver.cxx

index 86cddf2ecc103a54918361a5f15dc4cc2060c785..a06c4490199e3c758ed1fde63cb2bb6548e852bc 100644 (file)
@@ -40,10 +40,13 @@ IMPLEMENT_STANDARD_RTTIEXT(OpenGl_GraphicDriver, Graphic3d_GraphicDriver)
   #include <Aspect_NeutralWindow.hxx>
 #endif
 
-#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__) && !defined(__EMSCRIPTEN__)     \
+#if !defined(_WIN32) && !defined(__ANDROID__) && !defined(__QNX__)                                 \
   && (!defined(__APPLE__) || defined(HAVE_XLIB))
   #include <X11/Xlib.h> // XOpenDisplay()
-  #include <GL/glx.h>
+  #include <X11/Xutil.h>
+  #if !defined(__EMSCRIPTEN__)
+    #include <GL/glx.h>
+  #endif
 #endif
 
 #if !defined(HAVE_EGL)