Commit 03ef7406 by Geoff Lang

Fix comparing blend states with the wrong structure size.

Change-Id: I0e4c79cb7eaacf5403203b7b65094a54405ad47a Reviewed-on: https://chromium-review.googlesource.com/185863Reviewed-by: 's avatarNicolas Capens <nicolascapens@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 37dde692
...@@ -76,7 +76,7 @@ std::size_t RenderStateCache::hashBlendState(const BlendStateKey &blendState) ...@@ -76,7 +76,7 @@ std::size_t RenderStateCache::hashBlendState(const BlendStateKey &blendState)
bool RenderStateCache::compareBlendStates(const BlendStateKey &a, const BlendStateKey &b) bool RenderStateCache::compareBlendStates(const BlendStateKey &a, const BlendStateKey &b)
{ {
return memcmp(&a, &b, sizeof(gl::BlendState)) == 0; return memcmp(&a, &b, sizeof(BlendStateKey)) == 0;
} }
ID3D11BlendState *RenderStateCache::getBlendState(const gl::Framebuffer *framebuffer, const gl::BlendState &blendState) ID3D11BlendState *RenderStateCache::getBlendState(const gl::Framebuffer *framebuffer, const gl::BlendState &blendState)
......
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