mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-01 08:01:08 +00:00
- fixed: For 2D-drawing of camera textures the render style was not set.
This commit is contained in:
parent
1b20a06ec4
commit
926e9fdac4
1 changed files with 1 additions and 1 deletions
|
@ -319,6 +319,7 @@ void FGLRenderer::DrawTexture(FTexture *img, DCanvas::DrawParms &parms)
|
|||
parms.colorOverlay = 0;
|
||||
}
|
||||
|
||||
gl_SetRenderStyle(parms.style, !parms.masked, false);
|
||||
if (!img->bHasCanvas)
|
||||
{
|
||||
int translation = 0;
|
||||
|
@ -330,7 +331,6 @@ void FGLRenderer::DrawTexture(FTexture *img, DCanvas::DrawParms &parms)
|
|||
if (pal) translation = -pal->GetIndex();
|
||||
}
|
||||
}
|
||||
gl_SetRenderStyle(parms.style, !parms.masked, false);
|
||||
gl_RenderState.SetMaterial(gltex, CLAMP_XY_NOMIP, translation, 0, !!(parms.style.Flags & STYLEF_RedIsAlpha));
|
||||
|
||||
u1 = gltex->GetUL();
|
||||
|
|
Loading…
Reference in a new issue