From 2f2ae2bc894787d5f2d423917d815cf26ccced9e Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 30 May 2015 09:56:12 +0200 Subject: [PATCH] gsdx-ogl: enable gl tracing on windows Trace info is enabled in dbg/dev build for the opengl renderer Info is stored in GSdx_opengl_debug.txt when debug_opengl option is 1 --- plugins/GSdx/stdafx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/stdafx.h b/plugins/GSdx/stdafx.h index 88096bd648..62c0a0a824 100644 --- a/plugins/GSdx/stdafx.h +++ b/plugins/GSdx/stdafx.h @@ -497,13 +497,13 @@ extern void vmfree(void* ptr, size_t size); do if (gl_DebugMessageInsert) gl_DebugMessageInsert(GL_DEBUG_SOURCE_APPLICATION, type, code, sev, -1, format(__VA_ARGS__).c_str()); while(0); // Except apple any sane driver support this extension -#if defined(__linux__) && defined(_DEBUG) +#if defined(_DEBUG) #define GL_CACHE(...) GL_INSERT(GL_DEBUG_TYPE_OTHER, 0xFEAD, GL_DEBUG_SEVERITY_NOTIFICATION, __VA_ARGS__) #else #define GL_CACHE(...) (0); #endif -#if defined(__linux__) && defined(ENABLE_OGL_DEBUG) +#if defined(ENABLE_OGL_DEBUG) #define GL_PUSH(...) do if (gl_PushDebugGroup) gl_PushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0xBAD, -1, format(__VA_ARGS__).c_str()); while(0); #define GL_POP() do if (gl_PopDebugGroup) gl_PopDebugGroup(); while(0); #define GL_INS(...) GL_INSERT(GL_DEBUG_TYPE_ERROR, 0xDEAD, GL_DEBUG_SEVERITY_MEDIUM, __VA_ARGS__)