mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 21:20:39 +00:00
- enable texture upscaling in Polymost, disable it for the movie player's textures.
This commit is contained in:
parent
ec63dd4cb3
commit
448db9c93d
2 changed files with 7 additions and 3 deletions
|
@ -1189,8 +1189,12 @@ void FTextureManager::Init(void (*progressFunc_)(), void (*checkForHacks)(BuildI
|
||||||
AddGameTexture(CreateShaderTexture(true, false));
|
AddGameTexture(CreateShaderTexture(true, false));
|
||||||
AddGameTexture(CreateShaderTexture(true, true));
|
AddGameTexture(CreateShaderTexture(true, true));
|
||||||
// Add two animtexture entries so that movie playback can call functions using texture IDs.
|
// Add two animtexture entries so that movie playback can call functions using texture IDs.
|
||||||
AddGameTexture(MakeGameTexture(new AnimTexture(), "AnimTextureFrame1", ETextureType::Override));
|
auto mt = MakeGameTexture(new AnimTexture(), "AnimTextureFrame1", ETextureType::Override);
|
||||||
AddGameTexture(MakeGameTexture(new AnimTexture(), "AnimTextureFrame2", ETextureType::Override));
|
mt->SetUpscaleFlag(false);
|
||||||
|
AddGameTexture(mt);
|
||||||
|
mt = MakeGameTexture(new AnimTexture(), "AnimTextureFrame2", ETextureType::Override);
|
||||||
|
mt->SetUpscaleFlag(false);
|
||||||
|
AddGameTexture(mt);
|
||||||
|
|
||||||
int wadcnt = fileSystem.GetNumWads();
|
int wadcnt = fileSystem.GetNumWads();
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ bool GLInstance::SetTexture(FGameTexture* tex, int paletteid, int sampler, bool
|
||||||
auto &mat = renderState.mMaterial;
|
auto &mat = renderState.mMaterial;
|
||||||
assert(tex->isValid());
|
assert(tex->isValid());
|
||||||
mat.mTexture = tex;
|
mat.mTexture = tex;
|
||||||
mat.uFlags = UF_None;
|
mat.uFlags = UF_Texture;
|
||||||
mat.mScaleFlags = 0;
|
mat.mScaleFlags = 0;
|
||||||
mat.mClampMode = sampler;
|
mat.mClampMode = sampler;
|
||||||
mat.mTranslation = paletteid;
|
mat.mTranslation = paletteid;
|
||||||
|
|
Loading…
Reference in a new issue