mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
get -wgl working again
This commit is contained in:
parent
01228a8be0
commit
d04eeb3ba2
3 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue