openclonk/src
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
..
c4group Use #elif defined() to check for config.h macros instead of plain #elif 2016-01-23 23:05:16 +01:00
config Remove a bunch of dead code, mostly player control related 2016-02-03 03:17:23 +01:00
control Remove unused variable in C4ControlScript::Execute() 2016-02-02 21:51:51 -05:00
editor GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
game Stop pretending we support 16 bit color 2016-02-02 00:00:23 +01:00
gamescript Script: Remove PlayerObjectCommand 2016-02-03 03:17:22 +01:00
graphics GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
gui Fix indentation of the KeyCodeMap table 2016-02-06 16:50:47 +01:00
landscape Merge epoxy preparation branch 2016-02-02 03:35:13 +01:00
lib Merge epoxy preparation branch 2016-02-02 03:35:13 +01:00
mape Move GlobalNamed.SetNameList call after Link() into Link() 2016-01-25 00:00:58 +01:00
netio Remove unused MSVC project files for tstc4netio and netpuncher 2014-05-25 22:47:56 +02:00
network Remove a bunch of dead code, mostly player control related 2016-02-03 03:17:23 +01:00
object Remove a bunch of dead code, mostly player control related 2016-02-03 03:17:23 +01:00
platform GL: Switch from GLEW to Epoxy 2016-02-06 16:50:47 +01:00
player Remove a bunch of dead code, mostly player control related 2016-02-03 03:17:23 +01:00
res Win32 editor: Allow resizing of main console window #1601 2016-01-16 21:01:11 -05:00
script Reset the size of a C4Set in Clear() 2016-01-25 00:54:58 +01:00
zlib Fix possible double close when attempting to open uncompressed files 2012-02-05 20:00:47 +01:00
C4Globals.cpp Fix order of initialization of C4Game/C4GraphicsSystem. 2016-01-07 23:42:18 -04:00
C4Include.cpp Update copyright notices 2013-12-23 13:03:19 +01:00
C4Include.h MSVC: Remove support and workarounds for versions older than 2015 2016-01-23 23:10:02 +01:00
C4Prototypes.h Add more overloads of the C4Value constructor 2016-01-25 00:00:57 +01:00
C4Version.h.in Drop unused C4VERSIONBUILDNAME and C4ENGINEINFO 2015-12-29 15:47:55 +01:00