mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-21 10:51:06 +00:00
Added couple more #ifdef DLOPEN and also moved #include winquake.h. It must be before #include gl.h, or compile will fail.
This commit is contained in:
parent
8ce7084ba1
commit
a58579cebf
1 changed files with 8 additions and 7 deletions
|
@ -31,6 +31,10 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
# include "winquake.h"
|
||||
#endif
|
||||
|
||||
#include <GL/gl.h>
|
||||
|
||||
#ifdef HAVE_GL_GLEXT_H
|
||||
|
@ -50,11 +54,6 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
# include "winquake.h"
|
||||
#endif
|
||||
|
||||
#include "console.h"
|
||||
#include "glquake.h"
|
||||
#include "input.h"
|
||||
|
@ -379,12 +378,12 @@ VID_Init8bitPalette (void)
|
|||
Con_Printf ("disabled.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef HAVE_DLOPEN
|
||||
if (!(dlhand = dlopen (NULL, RTLD_LAZY))) {
|
||||
Con_Printf ("unable to check.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#endif
|
||||
if (vid_use8bit->int_val) {
|
||||
#ifdef HAVE_TDFXGL
|
||||
3dfx_Init8bitPalette ();
|
||||
|
@ -396,8 +395,10 @@ VID_Init8bitPalette (void)
|
|||
Con_Printf ("not found.\n");
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_DLOPEN
|
||||
dlclose (dlhand);
|
||||
dlhand = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue