Changeset View
Changeset View
Standalone View
Standalone View
source/lib/sysdep/gfx.cpp
Show All 28 Lines | |||||
#include "lib/external_libraries/libsdl.h" | #include "lib/external_libraries/libsdl.h" | ||||
#include "lib/ogl.h" | #include "lib/ogl.h" | ||||
#if OS_WIN | #if OS_WIN | ||||
# include "lib/sysdep/os/win/wgfx.h" | # include "lib/sysdep/os/win/wgfx.h" | ||||
#endif | #endif | ||||
#include <string> | |||||
namespace gfx { | namespace gfx { | ||||
std::wstring CardName() | std::wstring CardName() | ||||
{ | { | ||||
// GL_VENDOR+GL_RENDERER are good enough here, so we don't use WMI to detect the cards. | // GL_VENDOR+GL_RENDERER are good enough here, so we don't use WMI to detect the cards. | ||||
// On top of that WMI can cause crashes with Nvidia Optimus and some netbooks | // On top of that WMI can cause crashes with Nvidia Optimus and some netbooks | ||||
// see http://trac.wildfiregames.com/ticket/1952 | // see http://trac.wildfiregames.com/ticket/1952 | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator