mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Polymer: disable normal/parallax mapping in rotatesprite.
It was plainly noticeable in the editor's tile info display, for example. git-svn-id: https://svn.eduke32.com/eduke32@4409 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0c2c43e6b0
commit
9ac075be1c
1 changed files with 4 additions and 1 deletions
|
@ -4124,7 +4124,8 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
|||
int32_t ourxyaspect;
|
||||
|
||||
#if defined(USE_OPENGL) && defined(POLYMER)
|
||||
int32_t olddetailmapping = r_detailmapping, oldglowmapping = r_glowmapping;
|
||||
const int32_t olddetailmapping = r_detailmapping, oldglowmapping = r_glowmapping;
|
||||
const int32_t oldnormalmapping = pr_normalmapping;
|
||||
#endif
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
|
@ -4391,6 +4392,7 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
|||
|
||||
# ifdef POLYMER
|
||||
if (getrendermode() == REND_POLYMER) {
|
||||
pr_normalmapping = 0;
|
||||
polymer_inb4rotatesprite(picnum, dapalnum, dashade);
|
||||
r_detailmapping = 0;
|
||||
r_glowmapping = 0;
|
||||
|
@ -4530,6 +4532,7 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
|||
r_detailmapping = olddetailmapping;
|
||||
r_glowmapping = oldglowmapping;
|
||||
polymer_postrotatesprite();
|
||||
pr_normalmapping = oldnormalmapping;
|
||||
}
|
||||
# endif
|
||||
bglMatrixMode(GL_PROJECTION); bglPopMatrix();
|
||||
|
|
Loading…
Reference in a new issue