mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-21 10:51:06 +00:00
#ifdef out the 8 bit support functions
This commit is contained in:
parent
c67a1b37e5
commit
fbf23b9597
1 changed files with 4 additions and 0 deletions
|
@ -983,6 +983,7 @@ static void GL_ResampleTexture (unsigned int *in, int inwidth, int inheight, uns
|
||||||
GL_Resample8BitTexture -- JACK
|
GL_Resample8BitTexture -- JACK
|
||||||
================
|
================
|
||||||
*/
|
*/
|
||||||
|
#if defined(GL_SHARED_TEXTURE_PALETTE_EXT) && defined(HAVE_GL_COLOR_INDEX8_EXT)
|
||||||
static void GL_Resample8BitTexture (unsigned char *in, int inwidth, int inheight, unsigned char *out, int outwidth, int outheight)
|
static void GL_Resample8BitTexture (unsigned char *in, int inwidth, int inheight, unsigned char *out, int outwidth, int outheight)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
@ -1007,6 +1008,7 @@ static void GL_Resample8BitTexture (unsigned char *in, int inwidth, int inheight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
|
@ -1042,6 +1044,7 @@ GL_MipMap8Bit
|
||||||
Mipping for 8 bit textures
|
Mipping for 8 bit textures
|
||||||
================
|
================
|
||||||
*/
|
*/
|
||||||
|
#if defined(GL_SHARED_TEXTURE_PALETTE_EXT) && defined(HAVE_GL_COLOR_INDEX8_EXT)
|
||||||
static void GL_MipMap8Bit (byte *in, int width, int height)
|
static void GL_MipMap8Bit (byte *in, int width, int height)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
@ -1066,6 +1069,7 @@ static void GL_MipMap8Bit (byte *in, int width, int height)
|
||||||
out[0] = d_15to8table[(r<<0) + (g<<5) + (b<<10)];
|
out[0] = d_15to8table[(r<<0) + (g<<5) + (b<<10)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
===============
|
||||||
|
|
Loading…
Reference in a new issue