Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANGLE eglBindTexImage ASSERT when overwriting a binding
https://bugs.webkit.org/show_bug.cgi?id=265127 rdar://118649807 Reviewed by Dan Glastonbury. glBindTexture(GL_TEXTURE_2D, tex); eglBindTexImage(.., pbuffer, ...); - Would set the Surface::mBoundTexture of pbuffer - Would set the Texture::mBoundSurface of tex eglBindTexImage(.., pbuffer2, ...); - Would set the Surface::mBoundTexture of pbuffer2 - Would set the Texture::mBoundSurface of tex - Would fail to unset Surface::mBoundTexture of pbuffer Fix by making the unset logic linear, avoiding Surface -> Texture -> Surface call sequence. * Source/ThirdParty/ANGLE/src/libANGLE/Surface.cpp: (egl::Surface::bindTexImage): * Source/ThirdParty/ANGLE/src/libANGLE/Texture.cpp: (gl::Texture::bindTexImageFromSurface): * Source/ThirdParty/ANGLE/src/tests/gl_tests/PbufferTest.cpp: Originally-landed-as: 267815.587@safari-7617-branch (db3f6a7). rdar://121481385 Canonical link: https://commits.webkit.org/273423@main
- Loading branch information