mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
Fix colormap null pointer crash
This commit is contained in:
parent
9123c71bb6
commit
0ba8448782
1 changed files with 1 additions and 5 deletions
|
@ -243,12 +243,8 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
|
||||||
drawerargs.SetTranslationMap(identitymap);
|
drawerargs.SetTranslationMap(identitymap);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool visible;
|
|
||||||
FDynamicColormap *basecolormap = nullptr;
|
FDynamicColormap *basecolormap = nullptr;
|
||||||
if (viewport->RenderTarget->IsBgra())
|
bool visible = drawerargs.SetStyle(parms.style, parms.Alpha, -1, parms.fillcolor, basecolormap);
|
||||||
visible = drawerargs.SetStyle(parms.style, parms.Alpha, -1, parms.fillcolor, basecolormap);
|
|
||||||
else
|
|
||||||
visible = drawerargs.SetStyle(parms.style, parms.Alpha, 0, parms.fillcolor, basecolormap);
|
|
||||||
|
|
||||||
double x0 = parms.x - parms.left * parms.destwidth / parms.texwidth;
|
double x0 = parms.x - parms.left * parms.destwidth / parms.texwidth;
|
||||||
double y0 = parms.y - parms.top * parms.destheight / parms.texheight;
|
double y0 = parms.y - parms.top * parms.destheight / parms.texheight;
|
||||||
|
|
Loading…
Reference in a new issue