From 390811f414cdfaae292b628fb970e6076e0beb49 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 9 May 2015 18:33:55 +0200 Subject: [PATCH] gsdx-debug: Dump in PNG on linux & dbg/dev build Keep BMP for standard user of release build --- plugins/GSdx/config.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/GSdx/config.h b/plugins/GSdx/config.h index b24395598f..26efc05486 100644 --- a/plugins/GSdx/config.h +++ b/plugins/GSdx/config.h @@ -38,12 +38,6 @@ //#define DISABLE_DATE -// Allow to dump texture as PNG (require libpng++). It reduces the size of the dump -// and alpha is well supported (on linux) -//#define ENABLE_OGL_PNG -// The next two define allows to dump texture without alpha or only the alpha channel. -//#define ENABLE_OGL_PNG_OPAQUE -//#define ENABLE_OGL_PNG_ALPHA #if defined(_DEBUG) || defined(_DEVEL) #define ENABLE_OGL_DEBUG // Create a debug context and check opengl command status. Allow also to dump various textures/states. @@ -54,3 +48,12 @@ #ifdef _WINDOWS //#define ENABLE_OPENCL #endif + +#if defined(ENABLE_OGL_DEBUG) && defined(__linux__) +// Allow to dump texture as PNG (require libpng++). It reduces the size of the dump +// and alpha is well supported (on linux) +#define ENABLE_OGL_PNG +// The next two define allows to dump texture without alpha or only the alpha channel. +#define ENABLE_OGL_PNG_OPAQUE +#define ENABLE_OGL_PNG_ALPHA +#endif