Use the D3D11 adapter LUID for our adapter identifier check in ProgramBinary.

TRAC #22498 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1852 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent eec5c630
...@@ -1837,10 +1837,12 @@ std::string Renderer11::getRendererDescription() const ...@@ -1837,10 +1837,12 @@ std::string Renderer11::getRendererDescription() const
GUID Renderer11::getAdapterIdentifier() const GUID Renderer11::getAdapterIdentifier() const
{ {
// TODO // Use the adapter LUID as our adapter ID
// UNIMPLEMENTED(); // This number is local to a machine is only guaranteed to be unique between restarts
GUID foo = {0}; META_ASSERT(sizeof(LUID) <= sizeof(GUID));
return foo; GUID adapterId = {0};
memcpy(&adapterId, &mAdapterDescription.AdapterLuid, sizeof(LUID));
return adapterId;
} }
bool Renderer11::getBGRATextureSupport() const bool Renderer11::getBGRATextureSupport() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment