Skip to content

Commit

Permalink
UI|Client|LensFx: Don’t draw vignette if there is no map loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 20, 2014
1 parent 2a577ab commit c3a5a3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/client/src/render/fx/vignette.cpp
Expand Up @@ -21,6 +21,7 @@
#include "de_platform.h"
#include "render/fx/vignette.h"

#include "clientapp.h"
#include "con_main.h"
//#include "de_graphics.h"
#include "gl/gl_main.h"
Expand Down Expand Up @@ -102,6 +103,11 @@ Vignette::Vignette(int console) : ConsoleEffect(console)

void Vignette::draw()
{
if(!ClientApp::worldSystem().hasMap())
{
return;
}

/// @todo Field of view should be console-specific.

Vignette_Render(viewRect(), Rend_FieldOfView());
Expand Down

0 comments on commit c3a5a3b

Please sign in to comment.