summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-03 20:20:00 +0100
committerRay <[email protected]>2020-02-03 20:20:00 +0100
commitd2bb6185f1e1b675a7b258242149913168ab9606 (patch)
treee23496f9e2988681cab36e5fe85001b2e1f19056
parentc3f06b7470b2654c4cce20c3e18c46ad81330b3f (diff)
downloadraylib-d2bb6185f1e1b675a7b258242149913168ab9606.tar.gz
raylib-d2bb6185f1e1b675a7b258242149913168ab9606.zip
Review issue with RLGL TraceLog()
-rw-r--r--examples/others/rlgl_standalone.c1
-rw-r--r--src/rlgl.h6
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c
index d8100ce5..f02a8b1f 100644
--- a/examples/others/rlgl_standalone.c
+++ b/examples/others/rlgl_standalone.c
@@ -45,6 +45,7 @@
#define RLGL_IMPLEMENTATION
#define RLGL_STANDALONE
+#define RLGL_SUPPORT_TRACELOG
#include "rlgl.h" // OpenGL 1.1 immediate-mode style coding
#ifdef __EMSCRIPTEN__
diff --git a/src/rlgl.h b/src/rlgl.h
index 4d86737c..57d1882b 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -76,10 +76,10 @@
#endif
// Support TRACELOG macros
- #if defined(SUPPORT_TRACELOG)
+ #if defined(RLGL_SUPPORT_TRACELOG)
#define TRACELOG(level, ...) TraceLog(level, __VA_ARGS__)
- #if defined(SUPPORT_TRACELOG_DEBUG)
+ #if defined(RLGL_SUPPORT_TRACELOG_DEBUG)
#define TRACELOGD(...) TraceLog(LOG_DEBUG, __VA_ARGS__)
#else
#define TRACELOGD(...) (void)0
@@ -4646,7 +4646,7 @@ static Color *GenNextMipmap(Color *srcData, int srcWidth, int srcHeight)
#if defined(RLGL_STANDALONE)
// Show trace log messages (LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG)
-void TRACELOG(int msgType, const char *text, ...)
+void TraceLog(int msgType, const char *text, ...)
{
va_list args;
va_start(args, text);