Skip to content

Commit

Permalink
Debug|Client: viewPlayer and displayPlayer aren't always in sync
Browse files Browse the repository at this point in the history
Todo for later: Clean this up, there should only be one of these.
  • Loading branch information
skyjake committed May 9, 2015
1 parent e2c682e commit 0d904dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doomsday/client/src/render/fx/lensflares.cpp
Expand Up @@ -518,7 +518,12 @@ void LensFlares::draw()
d->uMvpMatrix = Viewer_Matrix(); //GL_GetProjectionMatrix() * Rend_GetModelViewMatrix(console());

DENG2_ASSERT(console() == displayPlayer);
DENG2_ASSERT(viewPlayer - ddPlayers == displayPlayer);
//DENG2_ASSERT(viewPlayer - ddPlayers == displayPlayer);
if(viewPlayer - ddPlayers != displayPlayer)
{
qDebug() << "LensFrames::draw: viewPlayer != displayPlayer";
return;
}

// Depth information is required for occlusion.
GLTarget &target = GLState::current().target();
Expand Down

0 comments on commit 0d904dc

Please sign in to comment.