- enable texture upscaling in Polymost, disable it for the movie player's textures.

This commit is contained in:
Christoph Oelckers 2021-11-28 13:46:01 +01:00
parent ec63dd4cb3
commit 448db9c93d
2 changed files with 7 additions and 3 deletions

View file

@ -1189,8 +1189,12 @@ void FTextureManager::Init(void (*progressFunc_)(), void (*checkForHacks)(BuildI
AddGameTexture(CreateShaderTexture(true, false));
AddGameTexture(CreateShaderTexture(true, true));
// Add two animtexture entries so that movie playback can call functions using texture IDs.
AddGameTexture(MakeGameTexture(new AnimTexture(), "AnimTextureFrame1", ETextureType::Override));
AddGameTexture(MakeGameTexture(new AnimTexture(), "AnimTextureFrame2", ETextureType::Override));
auto mt = MakeGameTexture(new AnimTexture(), "AnimTextureFrame1", ETextureType::Override);
mt->SetUpscaleFlag(false);
AddGameTexture(mt);
mt = MakeGameTexture(new AnimTexture(), "AnimTextureFrame2", ETextureType::Override);
mt->SetUpscaleFlag(false);
AddGameTexture(mt);
int wadcnt = fileSystem.GetNumWads();

View file

@ -76,7 +76,7 @@ bool GLInstance::SetTexture(FGameTexture* tex, int paletteid, int sampler, bool
auto &mat = renderState.mMaterial;
assert(tex->isValid());
mat.mTexture = tex;
mat.uFlags = UF_None;
mat.uFlags = UF_Texture;
mat.mScaleFlags = 0;
mat.mClampMode = sampler;
mat.mTranslation = paletteid;