From 5f50c30ac2e14e010e49a01ed9d777acae6639d3 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Thu, 12 Jan 2012 20:48:17 +0000 Subject: [PATCH] polymer.c: "Compiling GPU program with bits (octal) %o" for easier reading. Also, for debugging builds, show this message from verbosity level 1 on. git-svn-id: https://svn.eduke32.com/eduke32@2250 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index b6f505fcc..9c843f260 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -1497,7 +1497,7 @@ void polymer_deletelight(int16_t lighti) if (!prlights[lighti].flags.active) { #ifdef DEBUGGINGAIDS - if (pr_verbosity >= 1) + if (pr_verbosity >= 2) OSD_Printf("PR : Called polymer_deletelight on inactive light\n"); // currently known cases: when reloading maphack lights (didn't set maphacklightcnt=0 // but did loadmaphack()->delete_maphack_lights() after polymer_resetlights()) @@ -4978,9 +4978,14 @@ static void polymer_compileprogram(int32_t programbits) prprograms[programbits].handle = program; - if (pr_verbosity >= 2) OSD_Printf("PR : Compiling GPU program with bits %i...\n", programbits); +#ifdef DEBUGGINGAIDS + if (pr_verbosity >= 1) +#else + if (pr_verbosity >= 2) +#endif + OSD_Printf("PR : Compiling GPU program with bits (octal) %o...\n", (unsigned)programbits); if (!linkstatus) { - OSD_Printf("PR : Failed to compile GPU program with bits %i!\n", programbits); + OSD_Printf("PR : Failed to compile GPU program with bits (octal) %o!\n", (unsigned)programbits); if (pr_verbosity >= 1) OSD_Printf("PR : Compilation log:\n%s\n", infobuffer); bglGetShaderSourceARB(vert, PR_INFO_LOG_BUFFER_SIZE, NULL, infobuffer); if (pr_verbosity >= 1) OSD_Printf("PR : Vertex source dump:\n%s\n", infobuffer);