commit | c4b2fb39b1b12eef8dd1775370a29ac77d4a4fd3 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Fri Jan 14 11:40:18 2022 -0500 |
committer | Kevin Lubick <kjlubick@google.com> | Wed Jan 26 19:53:05 2022 +0000 |
tree | 7ada0db5969b42e2680db249152b28ef8d36214d | |
parent | 10c372914dfa08c524882b94a3f76f390698924f [diff] |
[canvaskit] Use proper texture tracking method The emscripten generated GL texture tracking code uses an integer, not the length of the textures array. https://github.com/emscripten-core/emscripten/blob/a8e7d3b8f27b05eb39b73151e1ff2914241acae8/src/library_webgl.js#L242 I believe this is to make sure a texture and buffer do not share the same handle. Therefore, we must use this method when making our own additions to the textures array, otherwise Skia-created textures will overlap with supplied textures, causing mis-drawings and feedback loops. Change-Id: I4e1be5ff2b0c3d1ba5f5984232980724cb492313 Bug: skia:12797 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/495416 Reviewed-by: Michael Ludwig <michaelludwig@google.com>