diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h index d583c364..2271fc3f 100644 --- a/include/GL/glfw3.h +++ b/include/GL/glfw3.h @@ -158,16 +158,24 @@ extern "C" { * (which is not a nice solution for portable programs). */ #if defined(__APPLE_CC__) - #define GL_GLEXT_LEGACY - #include - #ifndef GLFW_NO_GLU - #include - #endif + #if defined(GLFW_INCLUDE_GL3) + #include + #else + #define GL_GLEXT_LEGACY + #include + #endif + #ifndef GLFW_NO_GLU + #include + #endif #else - #include - #ifndef GLFW_NO_GLU - #include - #endif + #if defined(GLFW_INCLUDE_GL3) + #include + #else + #include + #endif + #ifndef GLFW_NO_GLU + #include + #endif #endif diff --git a/readme.html b/readme.html index f93c0dda..b933810a 100644 --- a/readme.html +++ b/readme.html @@ -278,6 +278,7 @@ version of GLFW.

  • Added GLFW_OPENGL_ES2_PROFILE profile for creating OpenGL ES 2.0 contexts using the GLX_EXT_create_context_es2_profile and WGL_EXT_create_context_es2_profile extensions
  • Added GLFW_OPENGL_ROBUSTNESS window hint and associated strategy tokens for GL_ARB_robustness support
  • Added GLFW_OPENGL_REVISION window parameter to make up for removal of glfwGetGLVersion
  • +
  • Added GLFW_INCLUDE_GL3 macro for telling the GLFW header to include gl3.h header instead of gl.h
  • Added windows simple multi-window test program
  • Added sharing simple OpenGL object sharing test program
  • Added a parameter to glfwOpenWindow for specifying a context the new window's context will share objects with