- remove colormap from texture generation parameters. The one remaining special case, alpha texture on old hardware is now handled by the currently set texture mode at the time of use.
- use the cleaned up decal lighting code from the first GLEW branch.
This commit is contained in:
parent
7793bbbcc9
commit
887d35d559
14 changed files with 131 additions and 289 deletions
|
|
@ -194,7 +194,6 @@ void gl_PrintStartupLog()
|
|||
|
||||
void gl_SetTextureMode(int type)
|
||||
{
|
||||
gl.needAlphaTexture = false;
|
||||
if (type == TM_MASK)
|
||||
{
|
||||
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE);
|
||||
|
|
@ -239,7 +238,6 @@ void gl_SetTextureMode(int type)
|
|||
else // if (type == TM_MODULATE)
|
||||
{
|
||||
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
gl.needAlphaTexture = (type == TM_REDTOALPHA);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue