X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=Source%2FThirdParty%2FANGLE%2Fsrc%2Fcommon%2Fdebug.cpp;h=3de5d4ecee11cb6cd0d249ba23fa27763c1b8dfc;hp=d8d6ab89a4d5c53e505396bc2d583b4dc8a2ece3;hb=f5af62409327e7887d8c0b1efa4a0db25092e43f;hpb=fc9316fe31a4be6c8d2d78fe76393143feeeee56 diff --git a/Source/ThirdParty/ANGLE/src/common/debug.cpp b/Source/ThirdParty/ANGLE/src/common/debug.cpp index d8d6ab89a4d5..3de5d4ecee11 100644 --- a/Source/ThirdParty/ANGLE/src/common/debug.cpp +++ b/Source/ThirdParty/ANGLE/src/common/debug.cpp @@ -11,17 +11,22 @@ #include #include +#ifndef TRACE_OUTPUT_FILE +#define TRACE_OUTPUT_FILE "debug.txt" +#endif + static bool trace_on = true; namespace gl { void trace(const char *format, ...) { +#if !defined(ANGLE_DISABLE_TRACE) if (trace_on) { if (format) { - FILE *file = fopen("debug.txt", "a"); + FILE *file = fopen(TRACE_OUTPUT_FILE, "a"); if (file) { @@ -34,5 +39,6 @@ void trace(const char *format, ...) } } } +#endif // !defined(ANGLE_DISABLE_TRACE) } }