mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-03-06 14:27:44 +00:00
Clip scroll fog to viewport, instead of filling entire screen. Fixes fog bug in Daytona credits.
This commit is contained in:
parent
aaa26f678c
commit
38c3ff61f9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue