From 9b6a1dd69d09e5ffc550883a85fee52f33718cb8 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 6 Jan 2015 23:56:50 +0100 Subject: [PATCH] Add support for AMD in graphic restrictions system --- src/graphics/graphics_restrictions.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/graphics/graphics_restrictions.cpp b/src/graphics/graphics_restrictions.cpp index 9abfb974a..0a0b712e3 100644 --- a/src/graphics/graphics_restrictions.cpp +++ b/src/graphics/graphics_restrictions.cpp @@ -158,6 +158,19 @@ public: } + // AMD: driver_version = "4.3.13283 Core Profile/Debug Context 14.501.1003.0" + // ---------------------------------------------- + if (card_name.find("AMD") != std::string::npos) + { + std::vector s = StringUtils::split(driver_version, ' '); + if (s.size() == 5) + { + convertVersionString(s[4]); + return; + } + + } + Log::warn("Graphics", "Can not find version for '%s' '%s' - ignored.", driver_version.c_str(), card_name.c_str());