- transitioned the 2D drawer to FGameTexture.

This commit is contained in:
Christoph Oelckers 2020-04-14 01:23:37 +02:00
commit 9e7094848c
21 changed files with 135 additions and 153 deletions

View file

@ -86,7 +86,7 @@ void FSoftwareRenderer::PreparePrecache(FGameTexture *ttex, int cache)
{
bool isbgra = V_IsTrueColor();
if (ttex != nullptr && ttex->isValid() && !ttex->GetTexture()->isCanvas())
if (ttex != nullptr && ttex->isValid() && !ttex->isSoftwareCanvas())
{
FSoftwareTexture *tex = GetSoftwareTexture(ttex);
@ -105,7 +105,7 @@ void FSoftwareRenderer::PrecacheTexture(FGameTexture *ttex, int cache)
{
bool isbgra = V_IsTrueColor();
if (ttex != nullptr && ttex->isValid() && !ttex->GetTexture()->isCanvas())
if (ttex != nullptr && ttex->isValid() && !ttex->isSoftwareCanvas())
{
FSoftwareTexture *tex = GetSoftwareTexture(ttex);
if (cache & FTextureManager::HIT_Columnmode)