From: Camilla B. <cam...@gm...> - 2008-09-28 12:43:18
|
StApostol wrote: >> I suppose we can determine the version automatically, by checking what the >> context says. > > Note that this can be somewhat tricky. For example, most Linux drivers > report versions like "1.4 (Mesa 2.1)" - first is GLX, followed by OpenGL. Actually, the first is OpenGL and the second is the Mesa library, analogous to other platforms. If some distro does it otherwise, it's violating the GL spec (section 6.1.11, "Pointer and String Queries"). >> > By the way, why not layer GLE on top of GLFW? > >> What exactly do you mean by layering GLE on top of GLFW? Do you mean that >> GLE should be called by GLFW? I don't think that's such a good idea. > > The other way round: have GLE call glfwGetAddress to simplify things. Note > that this should work even if the context was *not* created through GLFW. No, it won't. GLFW doesn't allow that call unless it owns the context. Regards, elmindreda |