From db4b4fb1666f0d5d75b16fc2e5bd544bca4661b1 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Tue, 25 Oct 2016 22:00:41 +0200 Subject: [PATCH] gsdx ogl: keep a separate log for sw --- plugins/GSdx/GSDeviceOGL.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index c046df4e48..0c66cf27ac 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -79,7 +79,10 @@ GSDeviceOGL::GSDeviceOGL() // Reset the debug file #ifdef ENABLE_OGL_DEBUG - m_debug_gl_file = fopen("GSdx_opengl_debug.txt","w"); + if (static_cast(theApp.GetConfigI("Renderer")) == GSRendererType::OGL_SW) + m_debug_gl_file = fopen("GSdx_opengl_debug_sw.txt","w"); + else + m_debug_gl_file = fopen("GSdx_opengl_debug_hw.txt","w"); #endif m_debug_gl_call = theApp.GetConfigB("debug_opengl");