From dc3b3c32d16dfbf4f9df2b219ba4eb9bf0c0938a Mon Sep 17 00:00:00 2001 From: husho Date: Tue, 5 Jun 2018 08:28:16 +0300 Subject: [PATCH] Enable blending for fades. Thanks to @NFSMONSTR --- rwengine/src/render/GameRenderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rwengine/src/render/GameRenderer.cpp b/rwengine/src/render/GameRenderer.cpp index 561a6563..3b6e7ffa 100644 --- a/rwengine/src/render/GameRenderer.cpp +++ b/rwengine/src/render/GameRenderer.cpp @@ -408,6 +408,7 @@ void GameRenderer::renderWorld(GameWorld* world, const ViewCamera& camera, float fadeTimer = world->getGameTime() - world->state->fadeStart; if (!world->isPaused()) { + glEnable(GL_BLEND); /// @todo rewrite this render code to use renderer class glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glUseProgram(ssRectProgram);