From bc5a7f97995dfe1368d71f7e70e64bcf2b06f30b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 21 Oct 2001 02:41:20 +0000 Subject: [PATCH] it seems to help if GLAPIENTRY is actually getting defined to something usefult. -wgl no longer dies now, though I still get a black screen (palette init issues:) --- include/QF/GL/extensions.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/include/QF/GL/extensions.h b/include/QF/GL/extensions.h index ce089e698..118633e71 100644 --- a/include/QF/GL/extensions.h +++ b/include/QF/GL/extensions.h @@ -33,13 +33,11 @@ #include "QF/GL/defines.h" #include "QF/GL/types.h" -// Define GLAPIENTRY to a useful value -#ifndef GLAPIENTRY -# ifdef APIENTRY -# define GLAPIENTRY APIENTRY -# else -# define GLAPIENTRY -# endif +#ifdef _WIN32 +# include +# define GLAPIENTRY WINAPI +#else +# define GLAPIENTRY #endif // OpenGL numbers for extensions we use or want to use