commit | 8764f2c54ac49b0bbbe799c11bc8c778b8063332 | [log] [tgz] |
---|---|---|
author | Yahan Zhou <yahan@google.com> | Mon Apr 25 13:02:04 2022 -0700 |
committer | Yahan Zhou <yahan@google.com> | Tue Apr 26 15:59:36 2022 -0700 |
tree | 16c4187498dc410c3dd13cbe8d760dfe1daffc1c | |
parent | 3c6a6648bf035a0a8cdebf39376953bd99e06bfb [diff] |
Fix corner case for render buffer reference count The spec leaves a lot of corner cases when deleting renderbuffer. It is automatically detached from the current framebuffer. This does not happen to framebuffers that are not current. We add more granular ref counts to handle the situation when it is bound to a framebuffer that has been detached. https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glDeleteRenderbuffers.xhtml Bug: 228188569 Test: run cts -m CtsSkQPTestCases -t org.skia.skqp.SkQPRunner#UnitTest_ES2BlendWithNoTexture Change-Id: I2b63419717cc3a3e211d9e555bae3f3932f010f5