From eadc2f35dd1b9bdac0f2ae5f83510c46047c6f3a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 19 Aug 2016 00:21:17 +0200 Subject: [PATCH] - fixed: The crossfade wipe must use its own alpha for the second layer, not the one from the vertex buffer. --- src/gl/system/gl_wipe.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl/system/gl_wipe.cpp b/src/gl/system/gl_wipe.cpp index c6c09b551..4f701265e 100644 --- a/src/gl/system/gl_wipe.cpp +++ b/src/gl/system/gl_wipe.cpp @@ -347,6 +347,7 @@ bool OpenGLFrameBuffer::Wiper_Crossfade::Run(int ticks, OpenGLFrameBuffer *fb) gl_RenderState.SetColorAlpha(0xffffff, a); gl_RenderState.Apply(); fb->wipeendscreen->Bind(0, 0, false); + mVertexBuf->EnableColorArray(false); glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); gl_RenderState.AlphaFunc(GL_GEQUAL, 0.5f); gl_RenderState.SetTextureMode(TM_MODULATE);