- add a method for filling a shape2d instead of using a texture (#1661)
Co-authored-by: Christoph Oelckers <coelckers@users.noreply.github.com>
This commit is contained in:
parent
ee0d90a983
commit
937c22ff14
4 changed files with 40 additions and 6 deletions
|
|
@ -621,7 +621,7 @@ void F2DDrawer::AddShape(FGameTexture* img, DShape2D* shape, DrawParms& parms)
|
|||
shape->lastParms = new DrawParms(parms);
|
||||
}
|
||||
|
||||
if (!img->isHardwareCanvas() && parms.TranslationId != -1)
|
||||
if (!(img != nullptr && img->isHardwareCanvas()) && parms.TranslationId != -1)
|
||||
dg.mTranslationId = parms.TranslationId;
|
||||
|
||||
auto osave = offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue