mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-03 20:59:18 -05:00
Review issue with RLGL TraceLog()
This commit is contained in:
@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
#define RLGL_IMPLEMENTATION
|
#define RLGL_IMPLEMENTATION
|
||||||
#define RLGL_STANDALONE
|
#define RLGL_STANDALONE
|
||||||
|
#define RLGL_SUPPORT_TRACELOG
|
||||||
#include "rlgl.h" // OpenGL 1.1 immediate-mode style coding
|
#include "rlgl.h" // OpenGL 1.1 immediate-mode style coding
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
|
|||||||
@ -76,10 +76,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Support TRACELOG macros
|
// Support TRACELOG macros
|
||||||
#if defined(SUPPORT_TRACELOG)
|
#if defined(RLGL_SUPPORT_TRACELOG)
|
||||||
#define TRACELOG(level, ...) TraceLog(level, __VA_ARGS__)
|
#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__)
|
#define TRACELOGD(...) TraceLog(LOG_DEBUG, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define TRACELOGD(...) (void)0
|
#define TRACELOGD(...) (void)0
|
||||||
@ -4646,7 +4646,7 @@ static Color *GenNextMipmap(Color *srcData, int srcWidth, int srcHeight)
|
|||||||
|
|
||||||
#if defined(RLGL_STANDALONE)
|
#if defined(RLGL_STANDALONE)
|
||||||
// Show trace log messages (LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG)
|
// 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_list args;
|
||||||
va_start(args, text);
|
va_start(args, text);
|
||||||
|
|||||||
Reference in New Issue
Block a user