mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
Debugging helper disabling a.nasm calls with OpenGL renderers.
Uncomment #define DEBUG_VALGRIND_NO_SMC in duke3d.h to be able to valgrind --smc-check=none (or the default stack-only) with Polymost and Polymer renderers. git-svn-id: https://svn.eduke32.com/eduke32@2337 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8ab0fbf7f4
commit
5f23cb6bcd
3 changed files with 11 additions and 0 deletions
|
@ -108,6 +108,10 @@ extern "C" {
|
||||||
// JBF 20040604: sync is a function on some platforms
|
// JBF 20040604: sync is a function on some platforms
|
||||||
#define sync dsync
|
#define sync dsync
|
||||||
|
|
||||||
|
// Uncomment the following to remove calls to a.nasm functions with the GL renderers
|
||||||
|
// so that debugging with valgrind --smc-check=none is possible:
|
||||||
|
//#define DEBUG_VALGRIND_NO_SMC
|
||||||
|
|
||||||
#include "namesdyn.h"
|
#include "namesdyn.h"
|
||||||
#include "function.h"
|
#include "function.h"
|
||||||
#include "macros.h"
|
#include "macros.h"
|
||||||
|
|
|
@ -3445,6 +3445,10 @@ void G_DrawRooms(int32_t snum, int32_t smoothratio)
|
||||||
walock[TILE_SAVESHOT] = 199;
|
walock[TILE_SAVESHOT] = 199;
|
||||||
if (waloff[TILE_SAVESHOT] == 0)
|
if (waloff[TILE_SAVESHOT] == 0)
|
||||||
allocache(&waloff[TILE_SAVESHOT],200*320,&walock[TILE_SAVESHOT]);
|
allocache(&waloff[TILE_SAVESHOT],200*320,&walock[TILE_SAVESHOT]);
|
||||||
|
#ifdef DEBUG_VALGRIND_NO_SMC
|
||||||
|
Bmemset((void *)waloff[TILE_SAVESHOT], 0, 200*320);
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
setviewtotile(TILE_SAVESHOT,200L,320L);
|
setviewtotile(TILE_SAVESHOT,200L,320L);
|
||||||
}
|
}
|
||||||
else if (getrendermode() == 0 && ((ud.screen_tilting && p->rotscrnang) || ud.detail==0))
|
else if (getrendermode() == 0 && ((ud.screen_tilting && p->rotscrnang) || ud.detail==0))
|
||||||
|
|
|
@ -369,6 +369,9 @@ void G_AnimateCamSprite(void)
|
||||||
{
|
{
|
||||||
int32_t i = camsprite;
|
int32_t i = camsprite;
|
||||||
|
|
||||||
|
#ifdef DEBUG_VALGRIND_NO_SMC
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
if (camsprite <= 0) return;
|
if (camsprite <= 0) return;
|
||||||
|
|
||||||
if (T1 >= 4)
|
if (T1 >= 4)
|
||||||
|
|
Loading…
Reference in a new issue