Fix D3D11 instancing support check to test against the current feature level.

TRAC #22414 Signed-off-by: Daniel Koch Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1811 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 8b400b1e
...@@ -1950,7 +1950,15 @@ bool Renderer11::getOcclusionQuerySupport() const ...@@ -1950,7 +1950,15 @@ bool Renderer11::getOcclusionQuerySupport() const
bool Renderer11::getInstancingSupport() const bool Renderer11::getInstancingSupport() const
{ {
return true; switch (mFeatureLevel)
{
case D3D_FEATURE_LEVEL_11_0:
case D3D_FEATURE_LEVEL_10_1:
case D3D_FEATURE_LEVEL_10_0:
return true;
default: UNREACHABLE();
return false;
}
} }
bool Renderer11::getShareHandleSupport() const bool Renderer11::getShareHandleSupport() 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