Implemented D3D11 non-pow2 texture support.

TRAC #22425 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1795 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 2ac02d5e
......@@ -1933,9 +1933,15 @@ int Renderer11::getMaxVaryingVectors() const
bool Renderer11::getNonPower2TextureSupport() const
{
// TODO
// UNIMPLEMENTED();
return false;
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::getOcclusionQuerySupport() 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