From 0ab0c6cfba54c116a7fc97b1bf8509df64b6cd27 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 27 Apr 2015 19:30:03 +0200 Subject: [PATCH] gsdx: verbose debug option Print opengl error message on stderr Rename Debug.txt into GSdx_opengl_debug.txt --- plugins/GSdx/GSDeviceOGL.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index e53d4421c2..0372ffa23b 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -26,7 +26,9 @@ #include "res/glsl_source.h" -//#define LOUD_DEBUGGING +#ifdef _DEBUG +#define LOUD_DEBUGGING +#endif //#define PRINT_FRAME_NUMBER //#define ONLY_LINES @@ -63,7 +65,7 @@ GSDeviceOGL::GSDeviceOGL() // Reset the debug file #ifdef ENABLE_OGL_DEBUG - FILE* f = fopen("Debug.txt","w"); + FILE* f = fopen("GSdx_opengl_debug.txt","w"); fclose(f); #endif } @@ -1216,7 +1218,7 @@ void GSDeviceOGL::DebugOutputToFile(GLenum gl_source, GLenum gl_type, GLuint id, fprintf(stderr,"Type:%s\tID:%d\tSeverity:%s\tMessage:%s\n", type.c_str(), g_draw_count, severity.c_str(), message.c_str()); #endif - FILE* f = fopen("Debug.txt","a"); + FILE* f = fopen("GSdx_opengl_debug.txt","a"); if(f) { fprintf(f,"Type:%s\tID:%d\tSeverity:%s\tMessage:%s\n", type.c_str(), g_draw_count, severity.c_str(), message.c_str());