mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
GL3: Deactivate STUB_ONCE() messages
This commit is contained in:
parent
0608eed7c3
commit
6e7dc59622
1 changed files with 4 additions and 3 deletions
|
@ -45,9 +45,7 @@
|
||||||
|
|
||||||
#include "HandmadeMath.h"
|
#include "HandmadeMath.h"
|
||||||
|
|
||||||
#define STUB(msg) \
|
#if 0 // only use this for development ..
|
||||||
R_Printf(PRINT_ALL, "STUB: %s() %s\n", __FUNCTION__, msg)
|
|
||||||
|
|
||||||
#define STUB_ONCE(msg) do { \
|
#define STUB_ONCE(msg) do { \
|
||||||
static int show=1; \
|
static int show=1; \
|
||||||
if(show) { \
|
if(show) { \
|
||||||
|
@ -55,6 +53,9 @@
|
||||||
R_Printf(PRINT_ALL, "STUB: %s() %s\n", __FUNCTION__, msg); \
|
R_Printf(PRINT_ALL, "STUB: %s() %s\n", __FUNCTION__, msg); \
|
||||||
} \
|
} \
|
||||||
} while(0);
|
} while(0);
|
||||||
|
#else // .. so make this a no-op in released code
|
||||||
|
#define STUB_ONCE(msg)
|
||||||
|
#endif
|
||||||
|
|
||||||
// a wrapper around glVertexAttribPointer() to stay sane
|
// a wrapper around glVertexAttribPointer() to stay sane
|
||||||
// (caller doesn't have to cast to GLintptr and then void*)
|
// (caller doesn't have to cast to GLintptr and then void*)
|
||||||
|
|
Loading…
Reference in a new issue