This commit is contained in:
nashmuhandes 2016-05-09 16:52:29 +08:00
commit eab28fc150
2 changed files with 12 additions and 0 deletions

View file

@ -448,6 +448,12 @@ void GLFlat::Draw(int pass, bool trans) // trans only has meaning for GLPASS_LIG
case GLPASS_LIGHTTEX_ADDITIVE:
DrawLightsCompat(pass);
break;
case GLPASS_TEXONLY:
gl_RenderState.SetMaterial(gltexture, CLAMP_NONE, 0, -1, false);
gl_SetPlaneTextureRotation(&plane, gltexture);
DrawSubsectors(pass, false, false);
break;
}
}

View file

@ -442,10 +442,16 @@ void GLWall::Draw(int pass)
RenderTranslucentWall();
break;
}
break;
case GLPASS_LIGHTTEX:
case GLPASS_LIGHTTEX_ADDITIVE:
RenderLightsCompat(pass);
break;
case GLPASS_TEXONLY:
gl_RenderState.SetMaterial(gltexture, flags & 3, 0, -1, false);
RenderWall(RWF_TEXTURED);
break;
}
}