mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fix blinking caused by uninitialized clipping planes
This commit is contained in:
parent
05a6896d4f
commit
f8aa48d053
1 changed files with 6 additions and 0 deletions
|
@ -116,4 +116,10 @@ void main()
|
|||
// clip planes used for translucency splitting
|
||||
gl_ClipDistance[1] = worldcoord.y - uClipSplit.x;
|
||||
gl_ClipDistance[2] = uClipSplit.y - worldcoord.y;
|
||||
|
||||
if (uSplitTopPlane == vec4(0.0))
|
||||
{
|
||||
gl_ClipDistance[3] = 1;
|
||||
gl_ClipDistance[4] = 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue