Improve robustness of SwapChainFactoryDXGI::MakeBacking
SwapChainFactoryDXGI::MakeBacking calls BindTexImage on the GLImageDXGISwapChain before binding the GL texture as GL_TEXTURE_2D. This causes eglBindTexImage validation to run on whatever texture happens to be bound as GL_TEXTURE_2D, causing random failures. To fix this problem, MakeTextureAndSetParameters was moved before the call to BindTexImage. Now eglBindTexImage validation runs on the correct texture. Change-Id: I3ad60c45c4acfb1b2a2fc8e5d15964accbdf8027 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636612Reviewed-by:Zhenyao Mo <zmo@chromium.org> Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com> Cr-Commit-Position: refs/heads/master@{#664614}
Showing
Please register or sign in to comment