- fixed: For 2D-drawing of camera textures the render style was not set.

This commit is contained in:
Christoph Oelckers 2016-01-07 22:20:57 +01:00
parent 1b20a06ec4
commit 926e9fdac4

View file

@ -319,6 +319,7 @@ void FGLRenderer::DrawTexture(FTexture *img, DCanvas::DrawParms &parms)
parms.colorOverlay = 0; parms.colorOverlay = 0;
} }
gl_SetRenderStyle(parms.style, !parms.masked, false);
if (!img->bHasCanvas) if (!img->bHasCanvas)
{ {
int translation = 0; int translation = 0;
@ -330,7 +331,6 @@ void FGLRenderer::DrawTexture(FTexture *img, DCanvas::DrawParms &parms)
if (pal) translation = -pal->GetIndex(); 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)); gl_RenderState.SetMaterial(gltex, CLAMP_XY_NOMIP, translation, 0, !!(parms.style.Flags & STYLEF_RedIsAlpha));
u1 = gltex->GetUL(); u1 = gltex->GetUL();