get -wgl working again

This commit is contained in:
Bill Currie 2002-07-27 06:43:28 +00:00
parent 01228a8be0
commit d04eeb3ba2
3 changed files with 7 additions and 4 deletions

View file

@ -46,10 +46,11 @@ extern void *libgl_handle;
qboolean GLF_Init (void);
void *QFGL_ProcAddress (void *, const char *, qboolean);
extern void *(*glGetProcAddress) (const char *);
#ifdef _WIN32
extern void *(WINAPI *glGetProcAddress) (const char *);
extern FARPROC (WINAPI *getProcAddress) (HINSTANCE, LPCSTR);
#else
extern void *(*glGetProcAddress) (const char *);
extern void *(*getProcAddress) (void *, const char *);
#endif
extern void *QFGL_LoadLibrary (void);

View file

@ -70,13 +70,15 @@ int modestate;
static SDL_Surface *screen = NULL;
void * (* glGetProcAddress) (const char *symbol) = NULL; // FIXME
//# error "Cannot load libraries: %s was not configured with DSO support"
// the following is to avoid other compiler errors
#ifdef _WIN32
void * (WINAPI *glGetProcAddress) (const char *symbol) = NULL; // FIXME
//# error "Cannot load libraries: %s was not configured with DSO support"
FARPROC (WINAPI *getProcAddress) (HINSTANCE, LPCSTR);
#else
void * (* glGetProcAddress) (const char *symbol) = NULL; // FIXME
//# error "Cannot load libraries: %s was not configured with DSO support"
void * (* getProcAddress) (void *, const char *);
#endif

View file

@ -141,7 +141,7 @@ void GL_Init (void);
#if defined(_WIN32)
void * (* glGetProcAddress) (const char *symbol) = NULL;
void * (WINAPI *glGetProcAddress) (const char *symbol) = NULL;
FARPROC (WINAPI *getProcAddress) (HINSTANCE, LPCSTR);
void *