GFX: Do not consult color map for alpha for AlphaOff meshes

This commit is contained in:
Dries Harnie 2018-07-09 23:32:40 +02:00
parent f30e693138
commit b236a005e8

View file

@ -770,7 +770,7 @@ void GfxOpenGL::drawEMIModelFace(const EMIModel *model, const EMIMeshFace *face)
byte r = (byte)(model->_colorMap[index].r * lighting.x());
byte g = (byte)(model->_colorMap[index].g * lighting.y());
byte b = (byte)(model->_colorMap[index].b * lighting.z());
byte a = (int)(model->_colorMap[index].a * alpha * _currentActor->getLocalAlpha(index));
byte a = (int)(alpha * (model->_meshAlphaMode == Actor::AlphaReplace ? model->_colorMap[index].a * _currentActor->getLocalAlpha(index) : 255.f));
glColor4ub(r, g, b, a);
}