commit | 4a012f5d3f630b2913df0163f79bf2f584c7c0f0 | [log] [tgz] |
---|---|---|
author | Shih-Hsin Li <seasonl@nvidia.com> | Tue Sep 21 18:11:23 2021 -0700 |
committer | Shih-hsin Li <seasonl@nvidia.com> | Fri Apr 07 11:30:24 2023 -0700 |
tree | 4cfdd74b19e8c368fed062718ce27f934b9e0f3f | |
parent | 23d9715001ec52207176ccd95f5239376a7d7e34 [diff] |
HWUI: reset buffer state after MakeCurrent MakeCurrent call is not guaranteed to reset read/draw buffer state of default framebuffer unless it's the first time the context is bound. When the default framebuffer transitions from EGL_NO_SURFACE to a surface, it's buffer state might stay GL_NONE. This change make sure default framebuffer buffer state is GL_BACK after MakeCurrent. Change-Id: I9d8a402c6e66e8eca177d8dec8208db3abb155f2