Fixed inconsistent state of lights in compatibility renderer

This commit is contained in:
alexey.lysiuk 2016-06-19 11:19:31 +03:00
parent 7b99c883e1
commit 2813a22740

View file

@ -456,7 +456,7 @@ bool gl_SetupLightTexture()
{
if (GLRenderer->gllight == nullptr) return false;
FMaterial * pat = FMaterial::ValidateTexture(GLRenderer->gllight, false);
pat->Bind(CLAMP_XY_NOMIP, 0);
gl_RenderState.SetMaterial(pat, CLAMP_XY_NOMIP, 0, -1, false);
return true;
}