From e8bd687f08e76dcbe3806c7d7eda797937f29fd3 Mon Sep 17 00:00:00 2001 From: riccardom Date: Wed, 21 Apr 2010 20:18:56 +0000 Subject: [PATCH] Make log3D static and put it under the same ifdef which surround its usage. --- desmume/src/gfx3d.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index 0d9109c0c..d95d64718 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -1638,7 +1638,9 @@ unsigned int gfx3d_glGetPosRes(unsigned int index) return (unsigned int)(PTcoords[index] * 4096.0f); } -void log3D(u8 cmd, u32 param) +//#define _3D_LOG_EXEC +#ifdef _3D_LOG_EXEC +static void log3D(u8 cmd, u32 param) { INFO("3D command 0x%02X: ", cmd); switch (cmd) @@ -1760,8 +1762,8 @@ void log3D(u8 cmd, u32 param) } printf("\t\t(FIFO size %i)\n", gxFIFO.size); } +#endif -//#define _3D_LOG_EXEC static void gfx3d_execute(u8 cmd, u32 param) { #ifdef _3D_LOG_EXEC