From df4645a84a9d29145ea8410284f34eb2601a8740 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 7 Jul 2016 23:48:56 +0200 Subject: [PATCH] gsdx ogl: Don't use NV extension on AMD potentially the NV extension is wrongly used but can't test it with the free driver --- plugins/GSdx/GLLoader.cpp | 2 +- plugins/GSdx/GSDeviceOGL.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/GLLoader.cpp b/plugins/GSdx/GLLoader.cpp index ff4b49b171..6a8d9111de 100644 --- a/plugins/GSdx/GLLoader.cpp +++ b/plugins/GSdx/GLLoader.cpp @@ -365,7 +365,7 @@ namespace GLLoader { #ifdef _WIN32 if (status) { if (fglrx_buggy_driver) { - fprintf(stderr, "OpenGL renderer is slow on AMD GPU due to inefficient driver. Sorry."); + fprintf(stderr, "OpenGL renderer is slow on AMD GPU due to inefficient driver. Sorry.\n"); } } #endif diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index bab9834723..68fe102a1e 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -490,7 +490,7 @@ bool GSDeviceOGL::Create(GSWnd* wnd) // Get Available Memory // **************************************************************** GLint vram[4] = {0}; - if (GLLoader::found_GL_NVX_gpu_memory_info) { + if (GLLoader::found_GL_NVX_gpu_memory_info && !GLLoader::fglrx_buggy_driver) { glGetIntegerv(GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX, vram); } else if (GLLoader::found_GL_ATI_meminfo) { // Why openGL is always that complicated !