- fixed: The 2D drawing code incorrectly set the shader override to disable all special effects.

This commit is contained in:
Christoph Oelckers 2016-05-04 14:10:06 +02:00
parent 9f91fa8f43
commit 5f095082c0
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ void FGLRenderer::DrawTexture(FTexture *img, DrawParms &parms)
if (pal) translation = -pal->GetIndex();
}
}
gl_RenderState.SetMaterial(gltex, CLAMP_XY_NOMIP, translation, 0, !!(parms.style.Flags & STYLEF_RedIsAlpha));
gl_RenderState.SetMaterial(gltex, CLAMP_XY_NOMIP, translation, -1, !!(parms.style.Flags & STYLEF_RedIsAlpha));
u1 = gltex->GetUL();
v1 = gltex->GetVT();