瀏覽代碼

Travis CI: Fix emscripten build breakage

Ahmad Fatoum 7 年之前
父節點
當前提交
639ce09c9d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      examples/others/rlgl_standalone.c

+ 4 - 0
examples/others/rlgl_standalone.c

@@ -48,6 +48,10 @@
 #define RLGL_STANDALONE
 #include "rlgl.h"               // OpenGL 1.1 immediate-mode style coding
 
+#ifdef __EMSCRIPTEN__
+#define GLFW_INCLUDE_ES2
+#endif
+
 #include <GLFW/glfw3.h>         // Windows/Context and inputs management
 
 #define RED        (Color){ 230, 41, 55, 255 }     // Red