1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

Enable blending for fades. Thanks to @NFSMONSTR

This commit is contained in:
husho 2018-06-05 08:28:16 +03:00
parent 04c3b62f01
commit dc3b3c32d1

View File

@ -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);