mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 03:00:58 +00:00
- moved the hires texture replacement logic into a backend callback.
This way it can be handled transparently to the calling code. Fonts do not work yet, though.
This commit is contained in:
parent
8c241afc40
commit
ed599d0f05
12 changed files with 85 additions and 94 deletions
|
@ -1495,7 +1495,7 @@ static int32_t polymost_md3draw(md3model_t *m, tspriteptr_t tspr)
|
|||
#endif
|
||||
int palid = TRANSLATION(Translation_Remap + curbasepal, globalpal);
|
||||
GLInterface.SetFade(sector[tspr->sectnum].floorpal);
|
||||
GLInterface.SetTexture(-1, tex, palid, CLAMP_XY);
|
||||
GLInterface.SetTexture(tex, palid, CLAMP_XY);
|
||||
|
||||
if (tspr->clipdist & TSPR_FLAGS_MDHACK)
|
||||
{
|
||||
|
@ -1559,7 +1559,6 @@ static int32_t polymost_md3draw(md3model_t *m, tspriteptr_t tspr)
|
|||
GLInterface.SetCull(Cull_None);
|
||||
|
||||
GLInterface.SetIdentityMatrix(Matrix_Model);
|
||||
GLInterface.SetTinting(-1, 0xffffff, 0xffffff);
|
||||
|
||||
globalnoeffect=0;
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue