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
This commit is contained in:
Gregory Hainaut 2016-07-07 23:48:56 +02:00
parent d6e447a89c
commit df4645a84a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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 !