mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +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, 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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue