EMI: Enable alpha blending if the mesh face flags has the 16th bit set.

This fixes drawing of the shadow mesh in the set unc when Guybrush is under the lights.
This commit is contained in:
Joni Vähämäki 2014-08-05 18:54:34 +03:00
parent 9a87fa5d51
commit 055f742ccc
4 changed files with 10 additions and 0 deletions

View file

@ -760,6 +760,8 @@ void GfxOpenGL::drawEMIModelFace(const EMIModel *model, const EMIMeshFace *face)
glEnable(GL_TEXTURE_2D);
else
glDisable(GL_TEXTURE_2D);
if (face->_flags & EMIMeshFace::kAlphaBlend)
glEnable(GL_BLEND);
glBegin(GL_TRIANGLES);
float dim = 1.0f - _dimLevel;