diff --git a/plugins/GSdx/GLLoader.cpp b/plugins/GSdx/GLLoader.cpp index 6a8d9111de..11e7bb5dc4 100644 --- a/plugins/GSdx/GLLoader.cpp +++ b/plugins/GSdx/GLLoader.cpp @@ -210,7 +210,6 @@ namespace GLLoader { bool found_GL_ARB_viewport_array = false; // Intel IB. AMD/NVIDIA DX10 // Bonus to monitor the VRAM bool found_GL_NVX_gpu_memory_info = false; - bool found_GL_ATI_meminfo = false; // Mandatory bool found_GL_ARB_buffer_storage = false; @@ -309,7 +308,6 @@ namespace GLLoader { // Bonus if (ext.compare("GL_EXT_texture_filter_anisotropic") == 0) found_GL_EXT_texture_filter_anisotropic = true; if (ext.compare("GL_NVX_gpu_memory_info") == 0) found_GL_NVX_gpu_memory_info = true; - if (ext.compare("GL_ATI_meminfo") == 0) found_GL_ATI_meminfo = true; // GL4.0 if (ext.compare("GL_ARB_gpu_shader5") == 0) found_GL_ARB_gpu_shader5 = true; if (ext.compare("GL_ARB_draw_buffers_blend") == 0) found_GL_ARB_draw_buffers_blend = true; diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index ad61013ece..656f5f3491 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -495,10 +495,10 @@ bool GSDeviceOGL::Create(GSWnd* wnd) // Get Available Memory // **************************************************************** GLint vram[4] = {0}; - 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) { + if (GLLoader::fglrx_buggy_driver) { glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, vram); + } else if (GLLoader::found_GL_NVX_gpu_memory_info) { + glGetIntegerv(GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX, vram); } else { fprintf(stdout, "No extenstion supported to get available memory. Use default value !\n"); }