mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
compile fixes for older systems
This commit is contained in:
parent
065649e488
commit
df386f31f9
2 changed files with 10 additions and 0 deletions
|
@ -168,6 +168,12 @@ void GL_Bind (int texnum);
|
|||
#define TEXTURE0_SGIS 0x835E
|
||||
#define TEXTURE1_SGIS 0x835F
|
||||
|
||||
#ifndef APIENTRY
|
||||
# ifndef _WIN32
|
||||
# define APIENTRY /* */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef void (APIENTRY *lpMTexFUNC) (GLenum, GLfloat, GLfloat);
|
||||
typedef void (APIENTRY *lpSelTexFUNC) (GLenum);
|
||||
extern lpMTexFUNC qglMTexCoord2fSGIS;
|
||||
|
|
|
@ -78,7 +78,11 @@ extern void VID_Init8bitPalette (void);
|
|||
void
|
||||
VID_SDL_GammaCheck (void)
|
||||
{
|
||||
#if SDL_MAJOR_VERSION > 1 || (SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION > 1)
|
||||
Uint16 redtable[256], greentable[256], bluetable[256];
|
||||
#else
|
||||
Uint8 redtable[256], greentable[256], bluetable[256];
|
||||
#endif
|
||||
|
||||
if (SDL_GetGammaRamp(redtable, greentable, bluetable) < 0)
|
||||
vid_gamma_avail = false;
|
||||
|
|
Loading…
Reference in a new issue