openclonk/cmake
Günther Brammer d4634526fd GL: Switch from GLEW to Epoxy
Epoxy automatically fetches the extension functions on demand, including
the GLX context creation functions. This means that you can't test the
function pointers for NULL anymore, because they're always set to a
resolver function until the first call. Instead, you have to check for the
availability of an extension by the extension's name. Thanks to Isilkor for
catching these.

On windows, epoxy invalidates all extension function pointers when the
GL context changes. This means we need to have an active context at all
times we call an extension function (like wglGetPixelFormatAttribivARB)
or else the code will jump to an invalid pointer. On the other hand, we do
not need to make it reinitialize the pointers ourselves.

Epoxy automatically uses an alias for a function if the requested name is
not available, like glDebugMessageCallbackARB instead of
glDebugMessageCallback. It also does not have the problem with varying
parameter types for that function. So switch to it while removing
GLDEBUGPROCARB_USERPARAM_IS_CONST.
2016-02-06 16:50:47 +01:00
..
CheckIncludeFilesCXX.cmake CMake: Update for 3.1 compatibility 2015-01-18 20:50:31 +01:00
FindAudio.cmake Update the SDL port to SDL2 2016-02-06 16:48:21 +01:00
FindDbgHelp.cmake Fix DbgHelp check 2015-02-08 15:03:08 +01:00
FindEpoxy.cmake GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
FindFreetype.cmake Remove some OSX-specific hacks from the main CMakeLists 2015-01-23 17:15:56 +01:00
FindGTK3.cmake CMake: Have headless build as a project instead of a separate config 2015-12-16 00:50:09 +01:00
FindPNG.cmake cmake: Also look for static libraries 2013-10-08 22:02:39 +02:00
FindReadline.cmake CMake: Re-enable readline support for openclonk-server 2015-12-28 18:48:45 +01:00
FindSDL2.cmake Update the SDL port to SDL2 2016-02-06 16:48:21 +01:00
FindSDL2Mixer.cmake Update the SDL port to SDL2 2016-02-06 16:48:21 +01:00
FindTinyXML.cmake Fix USE_SYSTEM_TINYXML 2015-03-28 22:58:53 +09:00
FindUpnp.cmake Fix UPnP auto-detection 2015-01-07 21:15:53 +01:00
FindZLIB.cmake cmake: Also look for static libraries 2013-10-08 22:02:39 +02:00
GccPchSupport.cmake Add a little warning when GCC Precompiled Headers go wrong 2012-05-02 00:25:45 +02:00
GitGetChangesetID.cmake Update copyright notices 2013-12-23 13:03:19 +01:00
RequireCXXSourceCompiles.cmake Add warning about old gcc when !HAVE_WORKING_REGEX 2015-10-03 13:42:46 +02:00
Version.cmake Drop unused C4VERSIONBUILDNAME and C4ENGINEINFO 2015-12-29 15:47:55 +01:00