瀏覽代碼

Fix GLFW_INCLUDE_GLEXT being ignored for glcorearb

The GLFW_INCLUDE_GLCOREARB branch was left out when GLFW_INCLUDE_GLEXT
was originally added, for reasons that are lost to history.  The current
versions of these headers seem to co-exist just fine.

Issue reported on IRC.

(cherry picked from commit 309d79376f31bddb75faed26efd1fe27b9365c06)
Camilla Löwy 4 年之前
父節點
當前提交
b77a9b1d0d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/GLFW/glfw3.h

+ 3 - 0
include/GLFW/glfw3.h

@@ -190,6 +190,9 @@ extern "C" {
  #else /*__APPLE__*/
 
   #include <GL/glcorearb.h>
+  #if defined(GLFW_INCLUDE_GLEXT)
+   #include <GL/glext.h>
+  #endif
 
  #endif /*__APPLE__*/