gsdx ogl: disable logz when ARB_clip_control is supported

Basically any recent drivers but Catalyst...
This commit is contained in:
Gregory Hainaut 2015-05-01 15:01:08 +02:00
parent 2ff3d17f67
commit e17ba1c143
1 changed files with 8 additions and 0 deletions

View File

@ -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);