Skip to content

Commit

Permalink
Changed the debug messages in GL_CalcLuminance to only output when ve…
Browse files Browse the repository at this point in the history
…rbose.
  • Loading branch information
danij committed Jun 30, 2008
1 parent 7037bfc commit 7ee9a6e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions doomsday/engine/portable/src/gl_tex.c
Expand Up @@ -1171,19 +1171,19 @@ void GL_CalcLuminance(int pnum, byte *buffer, int width, int height,
}

#ifdef _DEBUG
Con_Message("GL_CalcLuminance: Proc \"%s\"\n"
" width %dpx, height %dpx, bits %d\n"
" cell region X[%d, %d] Y[%d, %d]\n"
" flare X= %g Y=%g %s\n"
" flare RGB[%g, %g, %g] %s\n",
W_CacheLumpNum(sprTex->lump, PU_GETNAME),
width, height, pixelSize,
region[0], region[1], region[2], region[3],
(*brightX), (*brightY),
(posCnt? "(average)" : "(center)"),
(*color)[0], (*color)[1], (*color)[2],
(avgCnt? "(hi-intensity avg)" :
lowCnt? "(low-intensity avg)" : "(white light)"));
VERBOSE(Con_Message("GL_CalcLuminance: Proc \"%s\"\n"
" width %dpx, height %dpx, bits %d\n"
" cell region X[%d, %d] Y[%d, %d]\n"
" flare X= %g Y=%g %s\n"
" flare RGB[%g, %g, %g] %s\n",
W_CacheLumpNum(sprTex->lump, PU_GETNAME),
width, height, pixelSize,
region[0], region[1], region[2], region[3],
(*brightX), (*brightY),
(posCnt? "(average)" : "(center)"),
(*color)[0], (*color)[1], (*color)[2],
(avgCnt? "(hi-intensity avg)" :
lowCnt? "(low-intensity avg)" : "(white light)")));
#endif

// Amplify color.
Expand Down

0 comments on commit 7ee9a6e

Please sign in to comment.