Fix a warning in the cast of Renderer9::mDeviceCaps.MaxAnisotropy.

See http://code.google.com/p/angleproject/source/detail?r=2000 TRAC #22826 Signed-off-by: Geoff Lang Signed-off-by: Shannon Woods Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@2034 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 39bc8bda
...@@ -2250,7 +2250,7 @@ float Renderer9::getTextureMaxAnisotropy() const ...@@ -2250,7 +2250,7 @@ float Renderer9::getTextureMaxAnisotropy() const
{ {
if (mSupportsTextureFilterAnisotropy) if (mSupportsTextureFilterAnisotropy)
{ {
return mDeviceCaps.MaxAnisotropy; return static_cast<float>(mDeviceCaps.MaxAnisotropy);
} }
return 1.0f; return 1.0f;
} }
......
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