aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-05-25 13:45:00 +0200
committerArisotura <thetotalworm@gmail.com>2019-05-25 13:45:00 +0200
commit8c93a4557419ccdec2598af32e3305bdefbbd23b (patch)
treecf102dda8b35099d7886cb77e5a9bda03f356aa5 /src
parent478ca019da6cbd6fb93908cbc79f821953402bc2 (diff)
also support alpha-only fog
Diffstat (limited to 'src')
-rw-r--r--src/GPU3D_OpenGL.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp
index 759c404..9144792 100644
--- a/src/GPU3D_OpenGL.cpp
+++ b/src/GPU3D_OpenGL.cpp
@@ -861,7 +861,10 @@ void RenderSceneChunk(int y, int h)
glUseProgram(FinalPassShader[2]);
glEnable(GL_BLEND);
- glBlendFuncSeparate(GL_CONSTANT_COLOR, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_SRC_ALPHA);
+ if (RenderDispCnt & (1<<6))
+ glBlendFuncSeparate(GL_ZERO, GL_ONE, GL_CONSTANT_COLOR, GL_ONE_MINUS_SRC_ALPHA);
+ else
+ glBlendFuncSeparate(GL_CONSTANT_COLOR, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_SRC_ALPHA);
{
u32 c = RenderFogColor;