Clip scroll fog to viewport, instead of filling entire screen. Fixes fog bug in Daytona credits.

This commit is contained in:
Ian Curtis 2020-09-08 09:10:24 +00:00
parent aaa26f678c
commit 38c3ff61f9

View file

@ -155,7 +155,7 @@ CheckScroll:
rgba[1] == n.viewport.fogParams[1] &&
rgba[2] == n.viewport.fogParams[2]) {
glViewport(0, 0, m_totalXRes, m_totalYRes); // fill the whole viewport
glViewport(n.viewport.x, n.viewport.y, n.viewport.width, n.viewport.height);
m_r3dScrollFog.DrawScrollFog(rgba, n.viewport.scrollAtt, n.viewport.fogParams[6], n.viewport.spotFogColor, n.viewport.spotEllipse);
return;
}