- 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:
Christoph Oelckers 2014-05-11 19:44:19 +02:00
commit 887d35d559
14 changed files with 131 additions and 289 deletions

View file

@ -246,7 +246,7 @@ unsigned char *FGLRenderer::GetTextureBuffer(FTexture *tex, int &w, int &h)
FMaterial * gltex = FMaterial::ValidateTexture(tex);
if (gltex)
{
return gltex->CreateTexBuffer(CM_DEFAULT, 0, w, h);
return gltex->CreateTexBuffer(0, w, h);
}
return NULL;
}