From e17ba1c143da1efc0ad0d36c8e33ebd774f01b76 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 1 May 2015 15:01:08 +0200 Subject: [PATCH] gsdx ogl: disable logz when ARB_clip_control is supported Basically any recent drivers but Catalyst... --- plugins/GSdx/GSTextureFXOGL.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/GSdx/GSTextureFXOGL.cpp b/plugins/GSdx/GSTextureFXOGL.cpp index 559a99be0a..a1acc9a6d7 100644 --- a/plugins/GSdx/GSTextureFXOGL.cpp +++ b/plugins/GSdx/GSTextureFXOGL.cpp @@ -42,6 +42,14 @@ void GSDeviceOGL::CreateTextureFX() m_gs = CompileGS(); int logz = theApp.GetConfig("logz", 1); +#ifndef ENABLE_OGL_DEBUG + if (GLLoader::found_GL_ARB_clip_control && logz) { + fprintf(stderr, "Your driver supports advance depth. Logz will be disabled\n"); + logz = 0; + } else if (!GLLoader::found_GL_ARB_clip_control && !logz) { + fprintf(stderr, "Your driver DOESN'T support advance depth (GL_ARB_clip_control)\n It is higly recommmended to enable logz\n"); + } +#endif for (uint32 key = 0; key < VSSelector::size(); key++) { // wildhack is only useful if both TME and FST are enabled. VSSelector sel(key);