Fixed a bug with sampler state comparison size.

TRAC #22378 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch Author: Geoff Lang git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1681 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 9799a2f8
...@@ -328,7 +328,7 @@ std::size_t RenderStateCache::hashSamplerState(const gl::SamplerState &samplerSt ...@@ -328,7 +328,7 @@ std::size_t RenderStateCache::hashSamplerState(const gl::SamplerState &samplerSt
bool RenderStateCache::compareSamplerStates(const gl::SamplerState &a, const gl::SamplerState &b) bool RenderStateCache::compareSamplerStates(const gl::SamplerState &a, const gl::SamplerState &b)
{ {
return memcmp(&a, &b, sizeof(gl::DepthStencilState)) == 0; return memcmp(&a, &b, sizeof(gl::SamplerState)) == 0;
} }
ID3D11SamplerState *RenderStateCache::getSamplerState(const gl::SamplerState &samplerState) ID3D11SamplerState *RenderStateCache::getSamplerState(const gl::SamplerState &samplerState)
......
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