mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- fixed rendering of environment map on mirrors
With temporarily mapped buffer this feature seems to never work correctly
With persistently mapped buffer it was broken in 9a1603b246
This commit is contained in:
parent
4e6226fc2d
commit
4f5911da21
1 changed files with 3 additions and 0 deletions
|
@ -351,6 +351,9 @@ void FDrawInfo::AddMirrorSurface(GLWall *w)
|
|||
auto newwall = drawlists[GLDL_TRANSLUCENTBORDER].NewWall();
|
||||
*newwall = *w;
|
||||
|
||||
// Invalidate vertices to allow setting of texture coordinates
|
||||
newwall->vertcount = 0;
|
||||
|
||||
FVector3 v = newwall->glseg.Normal();
|
||||
auto tcs = newwall->tcs;
|
||||
tcs[GLWall::LOLFT].u = tcs[GLWall::LORGT].u = tcs[GLWall::UPLFT].u = tcs[GLWall::UPRGT].u = v.X;
|
||||
|
|
Loading…
Reference in a new issue