Index: src/libEGL/Display.cpp |
=================================================================== |
--- src/libEGL/Display.cpp (revision 2206) |
+++ src/libEGL/Display.cpp (working copy) |
@@ -319,6 +319,7 @@ |
} |
initExtensionString(); |
+ initVendorString(); |
static const TCHAR windowName[] = TEXT("AngleHiddenWindow"); |
static const TCHAR className[] = TEXT("STATIC"); |
@@ -1244,6 +1245,27 @@ |
return mExtensionString.c_str(); |
} |
+void Display::initVendorString() |
+{ |
+ mVendorString = "Google Inc."; |
+ |
+ if (mD3d9Ex) |
+ { |
+ LUID adapterLuid = {0}; |
+ mD3d9Ex->GetAdapterLUID(mAdapter, &adapterLuid); |
+ |
+ char adapterLuidString[64]; |
+ sprintf_s(adapterLuidString, sizeof(adapterLuidString), " (adapter LUID: %08x%08x)", adapterLuid.HighPart, adapterLuid.LowPart); |
+ |
+ mVendorString += adapterLuidString; |
+ } |
+} |
+ |
+const char *Display::getVendorString() const |
+{ |
+ return mVendorString.c_str(); |
+} |
+ |
bool Display::shareHandleSupported() const |
{ |
// PIX doesn't seem to support using share handles, so disable them. |