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:
parent
04c3b62f01
commit
dc3b3c32d1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user