mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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
This commit is contained in:
parent
7a5a19a874
commit
5f50c30ac2
1 changed files with 8 additions and 3 deletions
|
@ -1497,7 +1497,7 @@ void polymer_deletelight(int16_t lighti)
|
||||||
if (!prlights[lighti].flags.active)
|
if (!prlights[lighti].flags.active)
|
||||||
{
|
{
|
||||||
#ifdef DEBUGGINGAIDS
|
#ifdef DEBUGGINGAIDS
|
||||||
if (pr_verbosity >= 1)
|
if (pr_verbosity >= 2)
|
||||||
OSD_Printf("PR : Called polymer_deletelight on inactive light\n");
|
OSD_Printf("PR : Called polymer_deletelight on inactive light\n");
|
||||||
// currently known cases: when reloading maphack lights (didn't set maphacklightcnt=0
|
// currently known cases: when reloading maphack lights (didn't set maphacklightcnt=0
|
||||||
// but did loadmaphack()->delete_maphack_lights() after polymer_resetlights())
|
// but did loadmaphack()->delete_maphack_lights() after polymer_resetlights())
|
||||||
|
@ -4978,9 +4978,14 @@ static void polymer_compileprogram(int32_t programbits)
|
||||||
|
|
||||||
prprograms[programbits].handle = program;
|
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) {
|
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);
|
if (pr_verbosity >= 1) OSD_Printf("PR : Compilation log:\n%s\n", infobuffer);
|
||||||
bglGetShaderSourceARB(vert, PR_INFO_LOG_BUFFER_SIZE, NULL, infobuffer);
|
bglGetShaderSourceARB(vert, PR_INFO_LOG_BUFFER_SIZE, NULL, infobuffer);
|
||||||
if (pr_verbosity >= 1) OSD_Printf("PR : Vertex source dump:\n%s\n", infobuffer);
|
if (pr_verbosity >= 1) OSD_Printf("PR : Vertex source dump:\n%s\n", infobuffer);
|
||||||
|
|
Loading…
Reference in a new issue